and my setting:
include ':app', ':react-native-webview-bridge'
project(':react-native-webview-bridge').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview-bridge/android')
protected List<ReactPackage> getPackages() {
// Add additional packages you require here
// No need to add RnnPackage and MainReactPackage
return Arrays.<ReactPackage>asList(
new LinearGradientPackage(),
new ImagePickerPackage(),
new WebViewBridgePackage()
);
}
compile project(':react-native-webview-bridge')
and when id react-native run-android
it error :
but when i dose not use react-native-webview-bridge it can run
my environment: "react": "16.6.3", "react-native": "0.58.5", "react-native-navigation": "1.1.484", "react-redux": "^5.0.6", "redux": "^3.7.2", "redux-actions": "^2.2.1", "redux-thunk": "^2.2.0", "react-native-linear-gradient": "^2.5.3", "react-native-image-zoom-viewer": "^2.2.25", "eventemitter2": "^5.0.1", "immutable": "^3.8.2", "moment": "^2.20.1", "react-native-root-toast": "^3.0.0", "react-native-datepicker": "^1.7.2", "react-native-fileupload": "^1.2.0", "react-native-image-picker": "^0.26.7", "react-native-keyboard-spacer": "^0.4.1", "react-native-zss-rich-text-editor": "^1.1.0", "react-native-webview-bridge": "^0.40.1"
and my setting: include ':app', ':react-native-webview-bridge' project(':react-native-webview-bridge').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview-bridge/android')
import com.github.alinz.reactnativewebviewbridge.WebViewBridgePackage;
new WebViewBridgePackage() ); }
and when id react-native run-android it error :![111](https://user-images.githubusercontent.com/16333920/55066888-acd01280-50b9-11e9-834b-1c7143c108ca.png)
but when i dose not use react-native-webview-bridge it can run