Aleksey
Aleksey

Reputation: 81

Problems with starting on android device. Error with react-native-navigation

After run npm run android --stacktrace, I have an error:

Task :react-native-navigation:compileReactNative57_5DebugJavaWithJavac FAILED

error: NoOpPromise is not abstract and does not override abstract method reject(String,String,Throwable,WritableMap) in Promise public class NoOpPromise implements Promise {

react-native": "^0.58.1",

"react-native-navigation": "^2.8.0",

Upvotes: 3

Views: 680

Answers (1)

Arpan Sharma
Arpan Sharma

Reputation: 2162

You basically have to override the methods that the NoOpPromise.java class is not overriding. This issue is with react-native 0.58.1. Either you can degrade the version or you can make the changes in the NoOpPromise file.Please checkout my answer on github.

Enjoy Coding!!!!!!

Upvotes: 1

Related Questions