Last active
February 14, 2024 19:30
-
-
Save mshivam019/fc42aa55d104ea78392173e4205e1f65 to your computer and use it in GitHub Desktop.
react native deep linking with v6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default linking = { | |
| prefixes: [ | |
| 'https://domain.subdomain.com', | |
| 'appScheme://app', | |
| ], | |
| config: { | |
| screens: { | |
| initialRouteName: 'yourBaseHomeScreenName', | |
| someScreenName: 'itsRoute', | |
| someOtherScreenName: 'itsRoute', | |
| someParentStackScreenName: { | |
| screens: { | |
| someChildScreenName: { | |
| initialRouteName: 'baseForThisStackScreenName', | |
| screens: { | |
| someScreenName: 'itsRouteWithNestedRoutes/*', | |
| someOtherScreenName: 'itsRoute', | |
| someScreenNameWithRouteParams: { | |
| path: 'itsRoute/:pathParam', | |
| parse: { | |
| pathParam: (pathParam) => pathParam, | |
| }, | |
| }, | |
| AnotherScreenName: '/*', | |
| }, | |
| }, | |
| otherChildScreenName: { | |
| initialRouteName: 'baseForThisStackScreenName', | |
| screens: { | |
| someScreenName: 'itsRouteWithNestedRoutes/*', | |
| }, | |
| }, | |
| }, | |
| }, | |
| }, | |
| }, | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment