I was trying to call a plain javascript function from an external file in react native but it is not running. Please suggest a way to inject a plain javascript function.
I have tried to use WebView:
<View style={{flex: 1}}>
<WebView ref={ref => { this.webview = ref; }}
source={{ html: HTML }}
injectedJavaScript={jsCode}
javaScriptEnabledAndroid={true}
javaScriptEnabled={true}
>
</WebView>
</View>