react-native-zss-rich-text-editor icon indicating copy to clipboard operation
react-native-zss-rich-text-editor copied to clipboard

Crash on Android: undefined is not an object (evaluating 'UIManager.RCTWebViewBridge.Commands')

Open peter-tudosa opened this issue 8 years ago • 6 comments

Hi! I am having an issue on android. When I press any button from the toolbar I get an error. I know the error is not really from this package, it's from react-native-webview-bridge-updated which is a fork made by you and listed as a dependency for this package.

https://gyazo.com/54228e73dc716382a44854c7b69616ac

Anyone has any idea on how to fix this?

peter-tudosa avatar Feb 28 '17 11:02 peter-tudosa

I managed to fix this issue. It was due to bad setup of the react-native-webview-bridge-updated in the gradle files. There was some stuff I have to figure it out on my own. Following exactly the steps from the tutorial does not really work.

peter-tudosa avatar Mar 01 '17 14:03 peter-tudosa

Me too. Have you solved it?

liu868588 avatar Aug 24 '17 09:08 liu868588

@razvan-tudosa how did u fix the issue in android?

Thanmai-C avatar Oct 27 '17 12:10 Thanmai-C

How did you solve it?

Benjamin369 avatar Mar 12 '18 09:03 Benjamin369

Hey, guys! Unfortunately I don't remember exactly what was the solution. I remember fiddling a lot with the gradle files, there was a lot of trial and error and exploratory work. At a certain point it just worked and I had no idea why. :)) I have a web-development background so that gradle stuff for me was just bananas. Sorry!

peter-tudosa avatar Mar 12 '18 09:03 peter-tudosa

add this in mainapplication.java @Override protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( new MainReactPackage(), new WebViewBridgePackage() ); }

add this build.gradle compile project(':react-native-webview-bridge')

this will fix the issue, for more you can check example project

AlishahSolanki avatar Aug 03 '18 08:08 AlishahSolanki