feat: make example run as bare react-native project as well (#85)

This commit is contained in:
Brent Vatne
2019-09-08 09:10:44 -07:00
committed by Satyajit Sahoo
parent 9563a27284
commit d16c20cd39
57 changed files with 2740 additions and 1148 deletions

View File

@@ -0,0 +1,2 @@
import { Linking } from 'expo';
export default [Linking.makeUrl('/')];

View File

@@ -0,0 +1 @@
export default [];

View File

@@ -1,6 +1,6 @@
import * as React from 'react';
import { ScrollView, AsyncStorage, YellowBox } from 'react-native';
import { Linking } from 'expo';
import LinkingPrefixes from './LinkingPrefixes';
import { Appbar, List } from 'react-native-paper';
import { Asset } from 'expo-asset';
import {
@@ -72,7 +72,7 @@ export default function App() {
// iOS: xcrun simctl openurl booted exp://127.0.0.1:19000/--/simple-stack
// The first segment of the link is the the scheme + host (returned by `Linking.makeUrl`)
const { getInitialState } = useLinking(containerRef, {
prefixes: [Linking.makeUrl('/')],
prefixes: LinkingPrefixes,
getStateFromPath: path => {
const state = getStateFromPath(path);