Can this library function without being in charge of rendering the views being navigated to? #150
-
I have a non-standard use case, for gradual adoption. Given a web app, I would like to be able to piece by piece turn it into a React Native app. The first stop would be to render the whole web app in a WebView, and this is not a problem. Secondly, I was thinking of adding native navigation, but having the route definitions remain in the web app. The way I would like for this to work is if I could have access to I played around a bit with this yesterday, and found that it was difficult to "hack around" the sane defaults of this library, obviously not built for this use case. I found that However, it goes without saying that hard-coding a value like that is not a great look, and it could break in thousands of ways. So, I would just like to ask if anyone can think of a robust way to accomodate such a use case, or if I'm better off not attempting this until the app can offer meaningful scenes as opposed to a sibling WebView. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hey, Unfortunately, this library is intended to manage views by itself. The easiest way to make it work nicely would be to render new webview (one for each tab) and let this library manage its state. Honestly, I'm surprised this hack worked can you share a screenshot? 😅 |
Beta Was this translation helpful? Give feedback.
-
Setup:
Inside FourTabs:
|
Beta Was this translation helpful? Give feedback.
Hey,
Unfortunately, this library is intended to manage views by itself. The easiest way to make it work nicely would be to render new webview (one for each tab) and let this library manage its state. Honestly, I'm surprised this hack worked can you share a screenshot? 😅