I am using Firebase Dynamic link I am successfully creating a link but when i am testing it the link is opening but I cannot get the dynamic link.
const HandleDeepLink = () => {
const navigation = useNavigation();
const handleDynamicLink = link => {
Handle dynamic link inside your own application
console.log('link', link)
> };
useEffect(() => {
const unsubscribe = dynamicLinks().onLink(handleDynamicLink);
When the component is unmounted, remove the listener
return () => unsubscribe();
[]);
return null;
> }
useEffect(() => {
dynamicLinks()
> .getInitialLink()
> .then(link => {
console.log('link', link)
> });
[]);
here is the code.
I tried different listener but nothings work.