Skip to content

Commit 2c208a7

Browse files
committed
update deps
1 parent 49ff033 commit 2c208a7

File tree

7 files changed

+17115
-11101
lines changed

7 files changed

+17115
-11101
lines changed

.expo-shared/assets.json

-4
This file was deleted.

.gitignore

+24-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,35 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
14
node_modules/
5+
6+
# Expo
27
.expo/
38
dist/
4-
npm-debug.*
9+
web-build/
10+
11+
# Native
12+
*.orig.*
513
*.jks
614
*.p8
715
*.p12
816
*.key
917
*.mobileprovision
10-
*.orig.*
11-
web-build/
18+
19+
# Metro
20+
.metro-health-check*
21+
22+
# debug
23+
npm-debug.*
24+
yarn-debug.*
25+
yarn-error.*
1226

1327
# macOS
1428
.DS_Store
29+
*.pem
30+
31+
# local env files
32+
.env*.local
33+
34+
# typescript
35+
*.tsbuildinfo

App.js

+20-33
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,47 @@
1-
import Layout from "./components/Layout";
21
import { useDeviceContext, useAppColorScheme } from 'twrnc';
3-
import Home from "./screens/Home";
4-
import tw from "twrnc"
5-
import { Text, TouchableOpacity, View } from "react-native";
2+
import tw from 'twrnc';
3+
import { Text, TouchableOpacity } from 'react-native';
64
import { NavigationContainer } from '@react-navigation/native';
75
import { createNativeStackNavigator } from '@react-navigation/native-stack';
8-
import About from "./screens/About";
9-
import { Button } from "react-native-web";
6+
import About from './screens/About';
7+
import Home from './screens/Home';
8+
import Layout from './components/Layout';
109

1110
const Stack = createNativeStackNavigator();
1211

1312
export default function App() {
1413
useDeviceContext(tw, { withDeviceColorScheme: false });
15-
const [colorScheme, toggleColorScheme, setColorScheme] = useAppColorScheme(tw);
14+
const [, toggleColorScheme] = useAppColorScheme(tw);
1615

1716
return (
1817
<Layout>
1918
<TouchableOpacity onPress={toggleColorScheme}>
2019
<Text
21-
style={tw`bg-gray-200 dark:bg-gray-900 text-black dark:text-white
20+
style={tw`bg-gray-200 dark:bg-gray-900 text-black dark:text-white
2221
capitalize p-2 mt-24 text-center`}
2322
>
2423
toggle theme
2524
</Text>
2625
</TouchableOpacity>
27-
{/* navigation container */}
2826
<NavigationContainer>
29-
<Stack.Navigator screenOptions={{
30-
headerRight: () => (
31-
<TouchableOpacity onPress={toggleColorScheme}>
32-
<Text
33-
style={tw`bg-gray-200 dark:bg-gray-900 text-black dark:text-white
27+
<Stack.Navigator
28+
screenOptions={{
29+
headerRight: () => (
30+
<TouchableOpacity onPress={toggleColorScheme}>
31+
<Text
32+
style={tw`bg-gray-200 dark:bg-gray-900 text-black dark:text-white
3433
capitalize p-2 rounded`}
35-
>
36-
toggle theme
37-
</Text>
38-
</TouchableOpacity>
39-
),
40-
}}>
34+
>
35+
toggle theme
36+
</Text>
37+
</TouchableOpacity>
38+
),
39+
}}
40+
>
4141
<Stack.Screen name="Home" component={Home} />
4242
<Stack.Screen name="About" component={About} />
4343
</Stack.Navigator>
4444
</NavigationContainer>
4545
</Layout>
46-
47-
// <Layout>
48-
// {/* <TouchableOpacity onPress={toggleColorScheme}>
49-
// <Text style={tw`py-2 px-3 bg-blue-400 dark:bg-gray-800
50-
// text-black dark:text-white rounded`}>Switch Color Scheme</Text>
51-
// </TouchableOpacity> */}
52-
// {/* <NavigationContainer>
53-
// <Stack.Navigator initialRouteName="Home">
54-
// <Stack.Screen name="Home" component={Home} />
55-
// <Stack.Screen name="About" component={About} />
56-
// </Stack.Navigator>
57-
// </NavigationContainer> */}
58-
// </Layout>
5946
);
6047
}

app.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
{
22
"expo": {
3-
"name": "twrnc-exp",
4-
"slug": "twrnc-exp",
3+
"name": "repro2",
4+
"slug": "repro2",
55
"version": "1.0.0",
66
"orientation": "portrait",
77
"icon": "./assets/icon.png",
8+
"userInterfaceStyle": "light",
89
"splash": {
910
"image": "./assets/splash.png",
1011
"resizeMode": "contain",
1112
"backgroundColor": "#ffffff"
1213
},
13-
"updates": {
14-
"fallbackToCacheTimeout": 0
15-
},
1614
"assetBundlePatterns": [
1715
"**/*"
1816
],
@@ -22,7 +20,7 @@
2220
"android": {
2321
"adaptiveIcon": {
2422
"foregroundImage": "./assets/adaptive-icon.png",
25-
"backgroundColor": "#FFFFFF"
23+
"backgroundColor": "#ffffff"
2624
}
2725
},
2826
"web": {

0 commit comments

Comments
 (0)