luisfcofv/react-native-deep-linking

Reset Scheme Option ?

ayushnawani opened this issue · 3 comments

Can we also have reset scheme option? In Android, I am facing an issue where already running app is mounting scenes again on link open request and calling componentDidMount, which is pushing scheme again and causing routes callback to be called multiple times.

So I was hoping there will be some method like below to reset the scheme. Or is there already an option to reset schemes?

const resetScheme = () => { schemes.splice(0, schemes.length); };

If this is fine then, I can also send the pull request.

There isn't an option to reset schemes unfortunately.
Sure thing. Feel free to send a PR if that solves your problem, I appreciate it.

Cheers

Hi @luisfcofv,
I have created the pull request #44 with resetSchemes function. Please review it.

Thanks

Thank you @luisfcofv for the quick release.