2024-07-02 17:34:57 +02:00
|
|
|
import { LinkingOptions, NavigationContainer } from "@react-navigation/native";
|
2024-07-04 17:29:47 +02:00
|
|
|
import { Text, View } from "react-native";
|
2024-07-02 17:34:57 +02:00
|
|
|
import * as Linking from "expo-linking";
|
|
|
|
import Root from "./+html";
|
|
|
|
|
|
|
|
const prefix = Linking.createURL("/");
|
|
|
|
|
2024-07-04 17:29:47 +02:00
|
|
|
const linking: LinkingOptions<any> = {
|
2024-07-02 17:34:57 +02:00
|
|
|
prefixes: [
|
2024-07-04 17:29:47 +02:00
|
|
|
"myapp://", prefix,
|
2024-07-02 17:34:57 +02:00
|
|
|
],
|
|
|
|
config: {
|
|
|
|
screens: {}
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2024-07-04 17:29:47 +02:00
|
|
|
export default function App() {
|
2024-07-02 17:34:57 +02:00
|
|
|
return (
|
|
|
|
<NavigationContainer linking={linking} fallback={<Text>Loading...</Text>}>
|
|
|
|
<Root />
|
|
|
|
</NavigationContainer>
|
|
|
|
);
|
|
|
|
}
|