This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This gist is a workaround-fix for issue https://github.com/expo/expo/issues/2128 | |
the bug affects only android-standalone-apps! | |
environment for testing: | |
- create a blank expo app | |
- add to app.json: "scheme": "expodeeplinktest" | |
- expo eject | |
- start expo development server: expo start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { StyleSheet, Text, View, Linking } from 'react-native'; | |
export default class App extends React.Component { | |
componentDidMount() { | |
this._getInitialUrl(); | |
Linking.addEventListener('url', this._handleDeepURL); | |
} | |
componentWillUnmount() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { AsyncStorage, Platform, StyleSheet, Text, View, ScrollView } from 'react-native'; | |
import { Permissions, Notifications } from 'expo'; | |
export default class App extends React.Component { | |
constructor(props) { | |
super(props); | |
let tempLogArray = []; |