Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Starotitorov committed Nov 27, 2018
1 parent 9502a81 commit 29f0783
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -120,6 +120,8 @@ After installing the package, you need to follow a few simple steps:
1. Use `createDeepLinkingHandler` to get a higher order component, pass schemes config to this function.

```js
import { createDeepLinkingHandler } from 'react-native-deep-link';

/**
* This function receives a result of url parsing,
* you can find the structure of this object in the API docs below, and returns a function.
Expand Down Expand Up @@ -161,6 +163,8 @@ Optionally, if you need to handle situations, when the url is not supported or a
you can pass callbacks to withDeepLinking:

```js
import { createDeepLinkingHandler } from 'react-native-deep-link';

const App = createDeepLinkingHandler(schemes)(AppComponent);

class Root extends Component {
Expand Down

0 comments on commit 29f0783

Please sign in to comment.