mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-28 17:58:10 +03:00
remove deep linking (not useful)
This commit is contained in:
+11
-29
@@ -1,12 +1,10 @@
|
||||
import React from "react";
|
||||
import * as Linking from 'expo-linking';
|
||||
import {useColorScheme, View} from "react-native";
|
||||
import RealmContext from "./models/RealmContext";
|
||||
import {StatusBar} from "expo-status-bar";
|
||||
import {AMUITabBar} from "./components/AMUITabBar";
|
||||
import {useColorScheme, View} from "react-native";
|
||||
import {Server, WalletCards} from "lucide-react-native";
|
||||
import {NavigationContainer} from "@react-navigation/native";
|
||||
import {SafeAreaProvider} from "react-native-safe-area-context";
|
||||
import {MD3Colors} from "react-native-paper/lib/typescript/types";
|
||||
import {createBottomTabNavigator} from "@react-navigation/bottom-tabs";
|
||||
import {createNativeStackNavigator} from "@react-navigation/native-stack";
|
||||
import {DefaultTheme as NavigationLightTheme, DarkTheme as NavigationDarkTheme} from '@react-navigation/native';
|
||||
@@ -14,17 +12,20 @@ import {JetBrainsMono_400Regular, useFonts} from "@expo-google-fonts/jetbrains-m
|
||||
import {
|
||||
ActivityIndicator,
|
||||
adaptNavigationTheme,
|
||||
MD3DarkTheme, MD3LightTheme,
|
||||
MD3DarkTheme,
|
||||
MD3LightTheme,
|
||||
MD3Theme,
|
||||
PaperProvider,
|
||||
Paragraph
|
||||
} from 'react-native-paper';
|
||||
|
||||
import RealmContext from "./models/RealmContext";
|
||||
|
||||
import {AMUITabBar} from "./components/AMUITabBar";
|
||||
import CardAddModal from "./app/CardAddModal";
|
||||
import ServerAddModal from "./app/ServerAddModal";
|
||||
import CardManagerStack from "./app/CardManagerStack";
|
||||
import ServerManagerStack from "./app/ServerManagerStack";
|
||||
import {MD3Colors} from "react-native-paper/lib/typescript/types";
|
||||
import ServerAddModal from "./app/ServerAddModal";
|
||||
|
||||
const AMColors: Partial<MD3Colors> = {
|
||||
primary: '#e11d48',
|
||||
@@ -94,26 +95,6 @@ export default function AppRoot() {
|
||||
JetBrainsMono_400Regular
|
||||
});
|
||||
|
||||
const linking = {
|
||||
prefixes: [Linking.createURL('/'), "http://card.ppc.moe", "https://card.ppc.moe"],
|
||||
config: {
|
||||
screens: {
|
||||
"add-card": "#/cards/add",
|
||||
"add-server": "#/servers/add",
|
||||
"app": {
|
||||
screens: {
|
||||
"servers": {
|
||||
screens: {
|
||||
"server-listing": "#/",
|
||||
}
|
||||
},
|
||||
"cards": "#/cards"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if (!fontsLoaded) {
|
||||
return (
|
||||
<View style={{flex: 1, justifyContent: "center", alignItems: "center", gap: 10}}>
|
||||
@@ -128,14 +109,15 @@ export default function AppRoot() {
|
||||
<SafeAreaProvider>
|
||||
<PaperProvider theme={colorScheme === 'dark' ? AMDarkTheme : AMLightTheme}>
|
||||
{/* @ts-ignore */}
|
||||
<NavigationContainer theme={colorScheme === 'dark' ? DarkTheme : LightTheme} linking={linking}>
|
||||
<NavigationContainer theme={colorScheme === 'dark' ? DarkTheme : LightTheme}>
|
||||
<StatusBar/>
|
||||
<Stack.Navigator initialRouteName="app">
|
||||
{/* main app */}
|
||||
<Stack.Screen name="app" component={AppContent} options={{headerShown: false}}/>
|
||||
|
||||
<Stack.Group screenOptions={{presentation: "modal"}}>
|
||||
<Stack.Screen name="add-server" component={ServerAddModal} options={{title: "Add Server"}}/>
|
||||
<Stack.Screen name="add-server" component={ServerAddModal}
|
||||
options={{title: "Add Server"}}/>
|
||||
<Stack.Screen name="add-card" component={CardAddModal} options={{title: "Add Card"}}/>
|
||||
</Stack.Group>
|
||||
</Stack.Navigator>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"name": "AMNet",
|
||||
"scheme": "amnet",
|
||||
"version": "1.0.0",
|
||||
"slug": "amnet-native",
|
||||
"icon": "./assets/icon.png",
|
||||
|
||||
Generated
-14612
File diff suppressed because it is too large
Load Diff
@@ -3,9 +3,9 @@
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "expo start --dev-client",
|
||||
"android": "expo run:android",
|
||||
"ios": "expo run:ios",
|
||||
"ios-prebuild": "expo prebuild --platform ios",
|
||||
"postinstall": "patch-package"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -21,7 +21,6 @@
|
||||
"expo-clipboard": "~6.0.3",
|
||||
"expo-constants": "~16.0.2",
|
||||
"expo-dev-client": "~4.0.10",
|
||||
"expo-linking": "~6.3.1",
|
||||
"expo-status-bar": "~1.12.1",
|
||||
"expo-system-ui": "~3.0.7",
|
||||
"lucide-react-native": "^0.427.0",
|
||||
|
||||
Reference in New Issue
Block a user