expo-template-default 53.0.11 → 53.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_vscode/settings.json +7 -0
- package/app/(tabs)/explore.tsx +2 -1
- package/app/(tabs)/index.tsx +5 -4
- package/app/_layout.tsx +1 -11
- package/components/HelloWave.tsx +3 -3
- package/components/ThemedText.tsx +1 -1
- package/eslint.config.js +10 -0
- package/package.json +13 -19
- package/components/__tests__/ThemedText-test.tsx +0 -10
- package/components/__tests__/__snapshots__/ThemedText-test.tsx.snap +0 -24
package/app/(tabs)/explore.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Image } from 'expo-image';
|
|
2
|
+
import { Platform, StyleSheet } from 'react-native';
|
|
2
3
|
|
|
3
4
|
import { Collapsible } from '@/components/Collapsible';
|
|
4
5
|
import { ExternalLink } from '@/components/ExternalLink';
|
package/app/(tabs)/index.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Image
|
|
1
|
+
import { Image } from 'expo-image';
|
|
2
|
+
import { Platform, StyleSheet } from 'react-native';
|
|
2
3
|
|
|
3
4
|
import { HelloWave } from '@/components/HelloWave';
|
|
4
5
|
import ParallaxScrollView from '@/components/ParallaxScrollView';
|
|
@@ -28,7 +29,7 @@ export default function HomeScreen() {
|
|
|
28
29
|
{Platform.select({
|
|
29
30
|
ios: 'cmd + d',
|
|
30
31
|
android: 'cmd + m',
|
|
31
|
-
web: 'F12'
|
|
32
|
+
web: 'F12',
|
|
32
33
|
})}
|
|
33
34
|
</ThemedText>{' '}
|
|
34
35
|
to open developer tools.
|
|
@@ -37,13 +38,13 @@ export default function HomeScreen() {
|
|
|
37
38
|
<ThemedView style={styles.stepContainer}>
|
|
38
39
|
<ThemedText type="subtitle">Step 2: Explore</ThemedText>
|
|
39
40
|
<ThemedText>
|
|
40
|
-
Tap the Explore tab to learn more about what's included in this starter app
|
|
41
|
+
{`Tap the Explore tab to learn more about what's included in this starter app.`}
|
|
41
42
|
</ThemedText>
|
|
42
43
|
</ThemedView>
|
|
43
44
|
<ThemedView style={styles.stepContainer}>
|
|
44
45
|
<ThemedText type="subtitle">Step 3: Get a fresh start</ThemedText>
|
|
45
46
|
<ThemedText>
|
|
46
|
-
When you're ready, run
|
|
47
|
+
{`When you're ready, run `}
|
|
47
48
|
<ThemedText type="defaultSemiBold">npm run reset-project</ThemedText> to get a fresh{' '}
|
|
48
49
|
<ThemedText type="defaultSemiBold">app</ThemedText> directory. This will move the current{' '}
|
|
49
50
|
<ThemedText type="defaultSemiBold">app</ThemedText> to{' '}
|
package/app/_layout.tsx
CHANGED
|
@@ -1,29 +1,19 @@
|
|
|
1
1
|
import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native';
|
|
2
2
|
import { useFonts } from 'expo-font';
|
|
3
3
|
import { Stack } from 'expo-router';
|
|
4
|
-
import * as SplashScreen from 'expo-splash-screen';
|
|
5
4
|
import { StatusBar } from 'expo-status-bar';
|
|
6
|
-
import { useEffect } from 'react';
|
|
7
5
|
import 'react-native-reanimated';
|
|
8
6
|
|
|
9
7
|
import { useColorScheme } from '@/hooks/useColorScheme';
|
|
10
8
|
|
|
11
|
-
// Prevent the splash screen from auto-hiding before asset loading is complete.
|
|
12
|
-
SplashScreen.preventAutoHideAsync();
|
|
13
|
-
|
|
14
9
|
export default function RootLayout() {
|
|
15
10
|
const colorScheme = useColorScheme();
|
|
16
11
|
const [loaded] = useFonts({
|
|
17
12
|
SpaceMono: require('../assets/fonts/SpaceMono-Regular.ttf'),
|
|
18
13
|
});
|
|
19
14
|
|
|
20
|
-
useEffect(() => {
|
|
21
|
-
if (loaded) {
|
|
22
|
-
SplashScreen.hideAsync();
|
|
23
|
-
}
|
|
24
|
-
}, [loaded]);
|
|
25
|
-
|
|
26
15
|
if (!loaded) {
|
|
16
|
+
// Async font loading only occurs in development.
|
|
27
17
|
return null;
|
|
28
18
|
}
|
|
29
19
|
|
package/components/HelloWave.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
import Animated, {
|
|
4
|
-
useSharedValue,
|
|
5
4
|
useAnimatedStyle,
|
|
6
|
-
|
|
5
|
+
useSharedValue,
|
|
7
6
|
withRepeat,
|
|
8
7
|
withSequence,
|
|
8
|
+
withTiming,
|
|
9
9
|
} from 'react-native-reanimated';
|
|
10
10
|
|
|
11
11
|
import { ThemedText } from '@/components/ThemedText';
|
|
@@ -18,7 +18,7 @@ export function HelloWave() {
|
|
|
18
18
|
withSequence(withTiming(25, { duration: 150 }), withTiming(0, { duration: 150 })),
|
|
19
19
|
4 // Run the animation 4 times
|
|
20
20
|
);
|
|
21
|
-
}, []);
|
|
21
|
+
}, [rotationAnimation]);
|
|
22
22
|
|
|
23
23
|
const animatedStyle = useAnimatedStyle(() => ({
|
|
24
24
|
transform: [{ rotate: `${rotationAnimation.value}deg` }],
|
package/eslint.config.js
ADDED
package/package.json
CHANGED
|
@@ -2,41 +2,38 @@
|
|
|
2
2
|
"name": "expo-template-default",
|
|
3
3
|
"license": "0BSD",
|
|
4
4
|
"main": "expo-router/entry",
|
|
5
|
-
"version": "53.0.
|
|
5
|
+
"version": "53.0.13",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "expo start",
|
|
8
8
|
"reset-project": "node ./scripts/reset-project.js",
|
|
9
9
|
"android": "expo start --android",
|
|
10
10
|
"ios": "expo start --ios",
|
|
11
11
|
"web": "expo start --web",
|
|
12
|
-
"test": "jest --watchAll",
|
|
13
12
|
"lint": "expo lint"
|
|
14
13
|
},
|
|
15
|
-
"jest": {
|
|
16
|
-
"preset": "jest-expo"
|
|
17
|
-
},
|
|
18
14
|
"dependencies": {
|
|
19
15
|
"@expo/vector-icons": "^14.1.0",
|
|
20
16
|
"@react-navigation/bottom-tabs": "^7.3.10",
|
|
21
17
|
"@react-navigation/elements": "^2.3.8",
|
|
22
18
|
"@react-navigation/native": "^7.1.6",
|
|
23
|
-
"expo": "~53.0.0-preview.
|
|
19
|
+
"expo": "~53.0.0-preview.10",
|
|
24
20
|
"expo-blur": "~14.1.2",
|
|
25
21
|
"expo-constants": "~17.1.2",
|
|
26
|
-
"expo-font": "~13.1
|
|
22
|
+
"expo-font": "~13.2.1",
|
|
27
23
|
"expo-haptics": "~14.1.2",
|
|
24
|
+
"expo-image": "~2.1.4",
|
|
28
25
|
"expo-linking": "~7.1.2",
|
|
29
|
-
"expo-router": "~5.0.2-preview.
|
|
30
|
-
"expo-splash-screen": "~0.30.
|
|
26
|
+
"expo-router": "~5.0.2-preview.5",
|
|
27
|
+
"expo-splash-screen": "~0.30.5",
|
|
31
28
|
"expo-status-bar": "~2.2.1",
|
|
32
29
|
"expo-symbols": "~0.4.2",
|
|
33
|
-
"expo-system-ui": "~5.0.
|
|
34
|
-
"expo-web-browser": "~14.1.
|
|
30
|
+
"expo-system-ui": "~5.0.4",
|
|
31
|
+
"expo-web-browser": "~14.1.4",
|
|
35
32
|
"react": "19.0.0",
|
|
36
33
|
"react-dom": "19.0.0",
|
|
37
|
-
"react-native": "0.79.
|
|
34
|
+
"react-native": "0.79.1",
|
|
38
35
|
"react-native-gesture-handler": "~2.24.0",
|
|
39
|
-
"react-native-reanimated": "~3.17.
|
|
36
|
+
"react-native-reanimated": "~3.17.4",
|
|
40
37
|
"react-native-safe-area-context": "5.3.0",
|
|
41
38
|
"react-native-screens": "~4.10.0",
|
|
42
39
|
"react-native-web": "~0.20.0",
|
|
@@ -44,12 +41,9 @@
|
|
|
44
41
|
},
|
|
45
42
|
"devDependencies": {
|
|
46
43
|
"@babel/core": "^7.25.2",
|
|
47
|
-
"@types/jest": "^29.5.12",
|
|
48
44
|
"@types/react": "~19.0.10",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"react-test-renderer": "19.0.0",
|
|
53
|
-
"typescript": "~5.8.3"
|
|
45
|
+
"typescript": "~5.8.3",
|
|
46
|
+
"eslint": "^9.25.0",
|
|
47
|
+
"eslint-config-expo": "~9.0.3"
|
|
54
48
|
}
|
|
55
49
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import renderer from 'react-test-renderer';
|
|
3
|
-
|
|
4
|
-
import { ThemedText } from '../ThemedText';
|
|
5
|
-
|
|
6
|
-
it(`renders correctly`, () => {
|
|
7
|
-
const tree = renderer.create(<ThemedText>Snapshot test!</ThemedText>).toJSON();
|
|
8
|
-
|
|
9
|
-
expect(tree).toMatchSnapshot();
|
|
10
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`renders correctly 1`] = `
|
|
4
|
-
<Text
|
|
5
|
-
style={
|
|
6
|
-
[
|
|
7
|
-
{
|
|
8
|
-
"color": "#11181C",
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"fontSize": 16,
|
|
12
|
-
"lineHeight": 24,
|
|
13
|
-
},
|
|
14
|
-
undefined,
|
|
15
|
-
undefined,
|
|
16
|
-
undefined,
|
|
17
|
-
undefined,
|
|
18
|
-
undefined,
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
>
|
|
22
|
-
Snapshot test!
|
|
23
|
-
</Text>
|
|
24
|
-
`;
|