Explorar el Código

Improved Deeplink documentation (#1663)

To match the rest of the styling
Johan hace 7 años
padre
commit
0dc8f4f847
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4
    2
      docs/top-level-api.md

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

@@ -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)