Code Monkey home page Code Monkey logo

react-native-deep-link's People

Contributors

starotitorov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-deep-link's Issues

Error: The route /chat/:merchant callback is not a higher order function.

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?

How do you deal with dynamic queries?

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?

Without redux

Hi can I use this library without use redux?
Thanks

A handler for the was not found.

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
			},
		]
	},
];

Does it work for react-native android perfectly ?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.