starotitorov / react-native-deep-link Goto Github PK
View Code? Open in Web Editor NEWNPM package for handling deep links in React Native applications (Android+iOS).
License: MIT License
NPM package for handling deep links in React Native applications (Android+iOS).
License: MIT License
I have the following scheme:
const schemes = [
{
name: 'company:',
routes: [
{
expression: '/chat/:merchant',
callback: handleMerchantMessage
},
{
expression: '/detail/:merchant',
callback: handleMerchantNotice
},
{
expression: '/callbackuri',
callback: handleCallBack,
query: {
"state": "state",
"session_state": "session_state",
"code": "code",
}
}
]
},
{
name: 'https:',
routes: [
{
expression: 'https://company.onelink.me/QOVp/d8e6a2e0?af_dp=:merchant',
callback: handleDeferredDeeplink
}
]
}
]
export default createDeepLinkingHandler(schemes);
And the following functions:
export const handleMerchantMessage = () => {
pushNotificationBase();
}
export const handleMerchantNotice = () => {
pushNotificationBase();
}
export const handleDeferredDeeplink = () => {
}
export const handleCallBack = () => {
pushNotificationBase();
}
I get:
Error: The route /chat/:merchant callback is not a higher order function.
These look very similar to your example in handlers... why am I receiving the above error message? How do I change my code to fix it?
I have this setup:
export default createDeepLinkingHandler([{
name: 'exampledomain',
routes: [{
expression: '/chat/:merchant',
callback: handleMerchantMessage
},
{
expression: '/callbackuri',
callback: handleCallBack
}
]
}]);
However I am getting values like so:
exampledomain://callbackUri?state=faddf1f1-a667-4248-bfc0-0b0d42c3a315&session_state=b15b2e24-28fb-4b4c-959f-6ae3525f209d&code=b1e1e052-c46b-416f-ab75-6aafc2403883.b15b2e24-28fb-4b4c-959f-6ae3525f209d.c563ae1c-939a-4c97-82f2-6e92a5b6f8c3 was not found.
How am I supposed to deal with this?
Please add support for innerRef
as the ref
property of a wrapped component.
Examples
section of the README.md in the table of contents.Hi can I use this library without use redux?
Thanks
Hi thank you for your library,
I get following error:
A handler for the https://www.exmple.com/football/slug/ was not found.
but i have this schema
const schemes = [
{
name: 'https://www.exmple.com',
routes: [
{
expression: '/football/:slug/',
callback: handleMatchPreview
},
{
expression: '/football/:slug',
callback: handleMatchPreview
},
{
expression: ':slug',
callback: handleMatchPreview
},
{
expression: '/',
callback: handleMatchPreview
},
]
}, {
name: 'https://www.exmple.com/',
routes: [
{
expression: '/football/:slug/',
callback: handleMatchPreview
},
{
expression: '/football/:slug',
callback: handleMatchPreview
},
{
expression: ':slug',
callback: handleMatchPreview
},
{
expression: '/',
callback: handleMatchPreview
},
]
},
];
I have been searching for react-native deep linking in react-native project. Finally I got it this project, Can I get this package correctly. I mean does it work for IOS and Android ?
Please let me know thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.