daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Oct 19th, 2018 75 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. componentDidMount () {
  2.   if (Platform.OS === 'android') {
  3.     Linking.getInitialURL().then(url => {
  4.       if (url) {
  5.         this.myFunc(url)
  6.       }
  7.     })
  8.   }
  9.  
  10.   Linking.addEventListener('url', (event) => { this.myFunc(event.url) })
  11. }
  12.  
  13. myFunc = (url) => {
  14.   Alert.alert(
  15.     `Deep link: ${url}`
  16.   )
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top