Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
ngCry3136yI'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. -
ngCry3136y@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 :) -
52cal4976y@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.
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
rant