2
ngCry
5y

So for my work i need to build an app (preferably react native) which runs completely inside a webview. Is there any sane way to get the Webview to display a simple Web App made with standard Js? Im losing my mind over it

Comments
  • 3
    Cry, just like your name.

    On topic, a mobile apps inside web?
  • 1
    I've been trying to make an rn app with expo and injecting react components into it, but seems that there is no way to do this.
    Have been thinking about running a webserver on the phone to serve the web app but thats seems too insane for something that should (at least i think it should) be relatively simple.
  • 1
    @24th-Dragon no the App needs to be working offline (switching to an internal API if there is no Internet connection, they want one app that works on Android, iOS and as a WebApp + is maintainable no idea how to pull it off yet).
    Thank you for your suggestions :)
  • 1
    @24th-Dragon’s idea is much more reasonable than what your are suggesting OP. I use React and ReactNative every day in my work and transferring a React component over isn’t as straight forward as it seems. You would have to replace the web APIs with whatever mobile APIs are available, you may need to replace certain components (or use a package like react-native-div), styling is slightly different in RN, etc.
  • 1
    @ngCry PWAs do work offline though.
Add Comment