Serve HTML page and execute its included Javascript in React Native app

Serve HTML page and execute its included Javascript in React Native app



I'm working on a React Native application using react-native-maps. Part of this app requires a draggable geofence. Unfortunately, react-native-maps does not include this. However, the actual Google Maps Javascript API does. It even seems possible to allow the user to resize the polygon, which is my ultimate goal.


react-native-maps



Is there a way to serve a static HTML page as part of a React application in a way that would allow seamless navigation between it and the React components and correctly execute the Javascript in the static HTML page (see the Google Maps API example linked above)?




1 Answer
1



You can use a Webview to serve a static HTML. Not sure how well it handles javascript though



https://facebook.github.io/react-native/docs/webview





That renders an empty page. It appears the HTML loads, but the script does not execute.
– 223seneca
Aug 23 at 19:33






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)