Comments (4)
Are you looking for something like this?
https://facebook.github.io/react-native/docs/webview.html
On Sep 9, 2016 1:38 PM, "cmsheffield" [email protected] 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
#4, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEIkmTSwZaRnUs0zwl-nstEdW_TXqxlks5qoaePgaJpZM4J5VgH
.
from react-native-browser.
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.
from react-native-browser.
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.
from react-native-browser.
You might even be able to write something to wrap the newer WKWebView which would be even better for performance, if you're targeting iOS8+
from react-native-browser.
Related Issues (10)
- Any intention to add Android Support? HOT 2
- Can the Done Button move to Left?
- Browser.presentUrl is undefined HOT 5
- 'React/RCTDefines.h' file not found with React Native > 0.60
- Can I display a non HTTPS page? HOT 8
- Change status bar style while browser is opened HOT 2
- Opening PDFs hides top of the file HOT 2
- Unsupported files are white
- Android release compilations fail HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-browser.