react-native-linking-controller
Small library for manage actions that come from external urls. Created for more convenient work with Linking
Example
;;;; const linkingActions = //using default matcher: runs if url contains correct parameter `action` //Example: http://some.com?action=first-action { ; } //custom matcher 'another-action': { //should return object that contains action params in case match url //false otherwise } { //do some staff } ; Component //... { //Possible actions context. Passed in second action parameter let actionsContext = thiscontext; let linkingController = actionsContext; _; linkingController; }
More information you can get in tests