Skip to content

Instantly share code, notes, and snippets.

View aniltirola's full-sized avatar

aniltirola

  • Austria
View GitHub Profile
@aniltirola
aniltirola / App.js
Last active November 20, 2019 04:41
expo deeplink fix
/*
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
@aniltirola
aniltirola / App.js
Created August 20, 2018 16:06
expo deeplinking in android detached app fires multiple times when app in background
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() {
@aniltirola
aniltirola / App.js
Created October 25, 2017 14:26
debug expo push notifications on ios distribution build
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 = [];