React Native Navigation - npm run android build error on React Native v0.59

353 Views Asked by At

Detail:

  • "react-native": "0.59.0"
  • "react-native-navigation": "^2.13.1"

I already followed the installation instructions on here. But when I do command line npm run android or react-native run-android I got errors like this

Task :react-native-navigation:compileReactNative57_5DebugJavaWithJavac /Users/vive/Documents/Projects/RNPlayground/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/ views/element/Element.java:17: error: ReactViewBackgroundDrawable is not public in com.facebook.react.views.view; cannot be accessed from out side package import com.facebook.react.views.view.ReactViewBackgroundDrawable;

How to solve this issue? Anyone have any idea? Thank you.

ISSUE SOLVED : Just realize that I missed something in the installing step. Got hint from here

0

There are 0 best solutions below