solve npm issues. got a successful apk build.
This commit is contained in:
@ -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>
|
||||
|
@ -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 />
|
||||
|
@ -21,7 +21,7 @@ export function setupStore(preloadedState = {
|
||||
preloadedState,
|
||||
enhancers: (getDefaultEnhancers) => getDefaultEnhancers().concat(
|
||||
rememberEnhancer(
|
||||
isBrowser ? window.localStorage : AsyncStorage,
|
||||
AsyncStorage,
|
||||
rememberedKeys,
|
||||
{
|
||||
persistWholeStore: false,
|
||||
|
Reference in New Issue
Block a user