23 lines
522 B
TypeScript
23 lines
522 B
TypeScript
import { LinkingOptions, NavigationContainer } from "@react-navigation/native";
|
|
import { Text, View } from "react-native";
|
|
import * as Linking from "expo-linking";
|
|
import Root from "./+html";
|
|
|
|
const prefix = Linking.createURL("/");
|
|
|
|
const linking: LinkingOptions<any> = {
|
|
prefixes: [
|
|
"myapp://", prefix,
|
|
],
|
|
config: {
|
|
screens: {}
|
|
},
|
|
};
|
|
|
|
export default function App() {
|
|
return (
|
|
<NavigationContainer linking={linking} fallback={<Text>Loading...</Text>}>
|
|
<Root />
|
|
</NavigationContainer>
|
|
);
|
|
} |