# grid-react-navigation-webview-stack-navigator

> React Navigation components that allow routing with a persistent web view

Latest version **0.0.41** (published 2017-07-25) · 0 weekly downloads

## Install

```sh
npm install grid-react-navigation-webview-stack-navigator
pnpm add grid-react-navigation-webview-stack-navigator
yarn add grid-react-navigation-webview-stack-navigator
bun add grid-react-navigation-webview-stack-navigator
```

## Health

**Score 0/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.41 |
| Published | 2017-07-25 |
| First published | 2017-07-25 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gustaf Zetterlund |
| Maintainers | kvasdopil |
| Keywords | react, native, webview, router |

## Links

- npm: https://www.npmjs.com/package/grid-react-navigation-webview-stack-navigator
- Repository: https://bitbucket.org/ombori/grid-react-native-webview-router
- Homepage: https://bitbucket.org/ombori/grid-react-native-webview-router#readme
- npm.io page: https://npm.io/package/grid-react-navigation-webview-stack-navigator

## Dependencies (8)

- [clamp](https://npm.io/package/clamp.md) ^1.0.1
- [react](https://npm.io/package/react.md) ^16.0.0-alpha.6
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [react-native](https://npm.io/package/react-native.md) ~0.44.0
- [react-navigation](https://npm.io/package/react-navigation.md) ^1.0.0-beta.11
- [grid-clientjs-provider](https://npm.io/package/grid-clientjs-provider.md) git+ssh://git@bitbucket.org/ombori/grid-clientjs-provider.git
- [react-native-view-shot](https://npm.io/package/react-native-view-shot.md) ^1.9.1
- [grid-react-native-webview](https://npm.io/package/grid-react-native-webview.md) git+ssh://git@bitbucket.org/ombori/grid-react-native-webview.git

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.41 (latest) — 2017-07-25

## README

# React Navigation WebView Stack Navigator

To be used with [React Navigation](https://reactnavigation.org/).

* Install the latest version of React Navigation WebView Stack Navigator.

```bash
npm install --save git+ssh://git@bitbucket.org/ombori/grid-react-native-webview-router.git
```

* Install peer dependencies.

```bash
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](https://reactnavigation.org/docs) for how to use them.

```javascript
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.

```javascript
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.

```javascript
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.

---
_Source: https://npm.io/package/grid-react-navigation-webview-stack-navigator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
