Code Monkey home page Code Monkey logo

Comments (4)

mfkp avatar mfkp commented on September 18, 2024

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.

cmsheffield avatar cmsheffield commented on September 18, 2024

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.

mfkp avatar mfkp commented on September 18, 2024

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.

mfkp avatar mfkp commented on September 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.