solve npm issues. got a successful apk build.

This commit is contained in:
Jordan
2024-07-04 08:29:47 -07:00
parent fe927b44ad
commit ce826bd8db
10 changed files with 577 additions and 3052 deletions

View File

@ -1,11 +1,13 @@
import 'react-native-reanimated';
import 'react-native-gesture-handler';
import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native';
import { useFonts } from 'expo-font';
import { Stack } from 'expo-router';
import * as SplashScreen from 'expo-splash-screen';
import { useEffect } from 'react';
import 'react-native-reanimated';
import { useColorScheme } from '@/hooks/useColorScheme';
import { Text, View } from 'react-native';
// Prevent the splash screen from auto-hiding before asset loading is complete.
SplashScreen.preventAutoHideAsync();
@ -26,6 +28,12 @@ export default function RootLayout() {
return null;
}
// return (
// <View>
// <Text>Hello World!</Text>
// </View>
// )
return (
<ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
<Stack>

View File

@ -1,20 +1,20 @@
import { LinkingOptions, NavigationContainer } from "@react-navigation/native";
import { Text } from "react-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> = {
const linking: LinkingOptions<any> = {
prefixes: [
"tech.damngood.PliWould", prefix,
"myapp://", prefix,
],
config: {
screens: {}
},
};
function App() {
export default function App() {
return (
<NavigationContainer linking={linking} fallback={<Text>Loading...</Text>}>
<Root />

View File

@ -21,7 +21,7 @@ export function setupStore(preloadedState = {
preloadedState,
enhancers: (getDefaultEnhancers) => getDefaultEnhancers().concat(
rememberEnhancer(
isBrowser ? window.localStorage : AsyncStorage,
AsyncStorage,
rememberedKeys,
{
persistWholeStore: false,