Socket
Socket
Sign inDemoInstall

grid-react-navigation-webview-stack-navigator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grid-react-navigation-webview-stack-navigator

React Navigation components that allow routing with a persistent web view


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

React Navigation WebView Stack Navigator

To be used with React Navigation.

  • Install the latest version of React Navigation WebView Stack Navigator.
npm install --save git+ssh://git@bitbucket.org/ombori/grid-react-native-webview-router.git
  • Install peer dependencies.
npm install --save react react-native react-navigation react-native-view-shot git+ssh://git@bitbucket.org/ombori/grid-react-native-webview.git
  • Import navigator and screen from React Navigation WebView Stack Navigator, see React Navigation docs for how to use them.
import { WebViewStackNavigator, WebViewScreen } from 'grid-react-navigation-webview-stack-navigator';
  • The initial WebView location is set via the initialWebViewURI param on the initial route. If using redux to manage nav state this is set in the initialState of the reducer.
const initialState = AppNavigator.router.getStateForAction(
  AppNavigator.router.getActionForPathAndParams('Onboarding?initialWebViewURI=https://lekmer.se'),
);
  • You can dispatch WebView actions just like any other react navigation actions.
import { WebViewActions } from 'grid-react-navigation-webview-stack-navigator';

props.navigation.dispatch(
  WebViewActions.load({ uri: 'https://ombori.com' })
);

NOTE: WebViewActions.replace still needs work, right now it triggers a new route being pushed to the react navigation history stack.

Keywords

FAQs

Package last updated on 25 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc