Ver código fonte

Improved Deeplink documentation (#1663)

To match the rest of the styling
Johan 7 anos atrás
pai
commit
0dc8f4f847
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4
    2
      docs/top-level-api.md

+ 4
- 2
docs/top-level-api.md Ver arquivo

@@ -183,8 +183,10 @@ Navigation.dismissLightBox();
183 183
 Trigger a deep link within the app. See [deep links](https://wix.github.io/react-native-navigation/#/deep-links) for more details about how screens can listen for deep link events.
184 184
 
185 185
 ```js
186
-  import {Navigation} from 'react-native-navigation';
187
-  Navigation.handleDeepLink(...);
186
+  Navigation.handleDeepLink({
187
+    link: 'link/in/any/format',
188
+    payload: '' // (optional) Extra payload with deep link
189
+  });
188 190
 ```
189 191
 
190 192
 ## registerScreen(screenID, generator)