react-native-component / react-native-smart-barcode

A smart barcode scanner component for React Native app.
MIT License
308 stars 168 forks source link

can't find symbol #1

Closed zhanguangao closed 7 years ago

zhanguangao commented 7 years ago

MainActivity.java:35: error: can't find symbol application.setReactNativeHost(new ReactNativeHost(application) { ^ symbol: setReactNativeHost() position: MainApplication application

cyqresig commented 7 years ago

Have you followed the readme and changed the codes in MainApplication.java? You can see https://github.com/cyqresig/ReactNativeComponentDemos for the correct installation codes.

zhanguangao commented 7 years ago

@cyqresig I forgot to copy setReactNativeHost() in MainApplication, I added it and now run successful,thanks a lot;