Skip to content

Commit

Permalink
fix: spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
mironiasty committed Dec 22, 2023
1 parent b7d4e68 commit a62ca23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/navigation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ The library should be used alongside React Navigation library, follow [these ste
## Basic example

The library provides you with simple API to define the relationship between the web and native screens. The `react-native-web-screen` uses React Navigation [configurable links](https://reactnavigation.org/docs/configuring-links/) to handle navigation within the app.
You can follow react-navigation documentation to create your navigation stack and provide mapping between urls in app and screens. You have to define only paths that are important for your app and use matchers for fallback.
You can follow react-navigation documentation to create your navigation stack and provide mapping between URLs in app and screens. You must define only those paths that are important for your app and use matchers for fallback.

You should also define your custom WebView component that will be using `VisitableView` hood, to be able ot customize it's behavior.
You should also define your custom WebView component that will be using `VisitableView` hood, to be able to customize its behavior.

Let's say you want to add a web `Welcome` screen to your React Native app.

Expand Down Expand Up @@ -97,7 +97,7 @@ Now you can easily navigate to the `Welcome` web screen using react navigation A

## Nested navigators

You are also able to use [complex navigator](https://reactnavigation.org/docs/configuring-links#handling-nested-navigators) structures inside your app. Just make sure that your navigation definition and linking object matches.
You are also able to use [complex navigator](https://reactnavigation.org/docs/configuring-links#handling-nested-navigators) structures inside your app. Just make sure that your navigation definition and linking object match.


## Example app
Expand Down Expand Up @@ -131,7 +131,7 @@ const webScreens = buildWebScreen(webScreenConfig, {
});
```

To obtain `url` for current screen, use `useCurrentUrl` hook function
To obtain `url` for current screen, use `useCurrentUrl` hook function.

## Contributing

Expand Down

0 comments on commit a62ca23

Please sign in to comment.