I am working with react-native-navigation, but not able to configure it in Android Studio as per the Given documentation. Android Studio was given
Error:
Error: Project: app declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project :react-native-navigation.
My React Native Version is : 0.50.3 and npm version is :5.4.2.
Steps that I followed are.
Create React Native Project.
Go inside the Project folder.
Run npm install --save react-native-navigation.
Open Android project(inside the react native project) into the android studio.
copy the code given code into settings.gradle
include ':react-native-navigation' project(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation/android/app/')
6.Copy the given code inside build.gradle(app)
compile project(':react-native-navigation')
So I am getting this error in the final step.
Please let me know if any quick fix is there.
Any help will be appreciated.