Skip to content

Commit

Permalink
simple linking added
Browse files Browse the repository at this point in the history
it can be seen on web
  • Loading branch information
kanzitelli committed Feb 24, 2023
1 parent 4dd2f9a commit d9b9f0d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import 'expo-dev-client';
import React, {useCallback, useEffect, useState} from 'react';
import {LogBox} from 'react-native';
import * as SplashScreen from 'expo-splash-screen';
import * as Linking from 'expo-linking';
import {StatusBar} from 'expo-status-bar';
import {GestureHandlerRootView} from 'react-native-gesture-handler';

import {AppRoot} from './src/navio';
import {App} from './src/navio';
import {
configureDesignSystem,
getNavigationTheme,
Expand Down Expand Up @@ -46,7 +47,14 @@ export default (): JSX.Element => {
<GestureHandlerRootView style={{flex: 1}}>
<AppProvider>
<StatusBar style={getStatusBarStyle()} backgroundColor={getStatusBarBGColor()} />
<AppRoot navigationContainerProps={{theme: getNavigationTheme()}} />
<App
navigationContainerProps={{
theme: getNavigationTheme(),
linking: {
prefixes: [Linking.createURL('/')],
},
}}
/>
</AppProvider>
</GestureHandlerRootView>
);
Expand Down

0 comments on commit d9b9f0d

Please sign in to comment.