Description
Trying to send the parameters from the react-native-WebView to the javascript function.
tried injectedjs which didn't work.Should be able to pass the params from the webview to the javascript function.
<WebView
source={{ uri: 'file:///android_asset/ICFPackage/ICFPackage/index.html' }}
originWhitelist={["*"]}
domStorageEnabled={true}
startInLoadingState={true}
javaScriptEnabled={true}
allowFileAccess={true} />
React Native version:
React Native Environment Info:
System:
OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver)
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Memory: 317.05 MB / 15.56 GB
Shell: 4.4.19 - /bin/bash
Binaries:
Node: 11.15.0 - /usr/bin/node
npm: 6.7.0 - /usr/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
Android SDK:
API Levels: 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29
Build Tools: 27.0.3, 28.0.2, 28.0.3, 29.0.0, 29.0.1
System Images: android-24 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.9 => 0.59.9
npmGlobalPackages:
react-native-webview: 6.9.0