javascript - React Native with WebView that emulates a native view when changing pages -
i'm looking way control webview opens subpages on site (which control) in new view, feels more native, , browser button isn't needed, , instead replaced native button.
i've read messaging in documentation webview, apparently pretty new feature based on webview bridge alinz if understand correctly. supposed handle messaging between webview , js on page. haven't found lot of documentation or examples on though.
here's want do. header , webview 2 react components, , when click link nick in webview (index.php), js signal sent app, telling open new url (index.php?show=nick) in new view.
in view can click button, or swipe go back, , index.php still left it. ideally let me take step nick page, , go 2 steps.
is there tutorial or demo app using idea, or did invent , need code myself? :)
edit: of course, need loading icon showing in new page until page has loaded, unless somehow preload several pages. used show content of loaded hidden div html-page.
Comments
Post a Comment