Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 30343

firebase dynamic link with react-navigation

$
0
0

I have followed this document https://rnfirebase.io/docs/v4.1.x/links/android and able to run adb shell am start -W -a android.intent.action.VIEW -d "https://abc123.app.goo.gl" com.myapp.superapp to start the app.

How can open a dynamic link https://abc123.app.goo.gl it open the VideoScreen and pass the contentparam

Video:{
  screen : VideoScreen,
  path:'wvc/:contentparam',
}

So I tried this when clicking https://abc123.app.goo.gl (dynamic link):

componentDidMount () {
    Linking.getInitialURL().then((url) => {
      console.log('Initial url is: ' + url);
    }).catch(err => console.error('An error occurred', err));
}

However app opened but console.log given null


Viewing all articles
Browse latest Browse all 30343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>