Open cmsheffield opened 8 years ago
Are you looking for something like this? https://facebook.github.io/react-native/docs/webview.html
On Sep 9, 2016 1:38 PM, "cmsheffield" notifications@github.com wrote:
Hi,
Is there any way to open the browser in a non-modal view? For example, I would like to just have the browser be my main view in my react-native app. Is there any way to just do something like:
??
Thanks.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PrestoDoctor/react-native-browser/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEIkmTSwZaRnUs0zwl-nstEdW_TXqxlks5qoaePgaJpZM4J5VgH .
Tried that. :-)
The reason I'm trying the react-native-browser is because it was recommended as an alternative solution to react native's own WebView, which seems to take longer loading pages initially. And I have confirmed that react-native-browser seems to load pages slightly faster. So I was hoping to make it the main view of the app, just like I can with WebView. Either that or be able to hide all controls, including the navigation bar.
I know it seems like kind of a strange request. My company is working on a web app using React, but there are certain issues we're having on the iPad when running our app in Safari. We're hoping to get around some of those issues by creating a native app with an embedded web view.
Thanks for the quick response, btw.
Theoretically it should be possible.
According to the Readme of the TOWebViewController: https://github.com/TimOliver/TOWebViewController#presenting-as-a-modal-dialog
It can either be presented as a modal (which is done in this RN plugin), or pushed onto the navigation stack. The only had part is that RN doesn't use the iOS UINavigationController, since they've implemented their own.
There might be a more lightweight iOS native component that you could substitute in if you don't need all the controls and navigation bar.
Hi,
Is there any way to open the browser in a non-modal view? For example, I would like to just have the browser be my main view in my react-native app. Is there any way to just do something like:
??
Thanks.