Skip to content

Commit c32a344

Browse files
committed
test: add expo SDK 42 test
1 parent 641399f commit c32a344

29 files changed

+9252
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
node_modules/
2+
3+
# macOS
4+
.DS_Store

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"scripts": {
3333
"test": "yarn test:rn && yarn test:expo",
3434
"test:rn": "cd test/RN61 && yarn install && npx ../.. && cd ../..",
35-
"test:expo": "cd test/Expo35 && yarn install && npx ../.. --expo managed && cd ../.."
35+
"test:expo": "yarn test:expo:35 && yarn test:expo:42",
36+
"test:expo:35": "cd test/Expo35 && yarn install && npx ../.. --expo managed && cd ../..",
37+
"test:expo:42": "cd test/Expo42 && yarn install && npx ../.. --expo managed && cd ../.."
3638
}
3739
}

test/Expo42/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
node_modules/
2+
.expo/
3+
npm-debug.*
4+
*.jks
5+
*.p8
6+
*.p12
7+
*.key
8+
*.mobileprovision
9+
*.orig.*
10+
web-build/
11+
12+
# macOS
13+
.DS_Store

test/Expo42/App.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import 'react-native-gesture-handler';
2+
import { StatusBar } from 'expo-status-bar';
3+
import React from 'react';
4+
import { SafeAreaProvider } from 'react-native-safe-area-context';
5+
6+
import useCachedResources from './hooks/useCachedResources';
7+
import useColorScheme from './hooks/useColorScheme';
8+
import Navigation from './navigation';
9+
10+
export default function App() {
11+
const isLoadingComplete = useCachedResources();
12+
const colorScheme = useColorScheme();
13+
14+
if (!isLoadingComplete) {
15+
return null;
16+
} else {
17+
return (
18+
<SafeAreaProvider>
19+
<Navigation colorScheme={colorScheme} />
20+
<StatusBar />
21+
</SafeAreaProvider>
22+
);
23+
}
24+
}

test/Expo42/app.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"expo": {
3+
"name": "Bundle Visualizer",
4+
"slug": "Expo42",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/images/icon.png",
8+
"scheme": "myapp",
9+
"userInterfaceStyle": "automatic",
10+
"splash": {
11+
"image": "./assets/images/splash.png",
12+
"resizeMode": "contain",
13+
"backgroundColor": "#ffffff"
14+
},
15+
"updates": {
16+
"fallbackToCacheTimeout": 0
17+
},
18+
"assetBundlePatterns": [
19+
"**/*"
20+
],
21+
"ios": {
22+
"supportsTablet": true
23+
},
24+
"android": {
25+
"adaptiveIcon": {
26+
"foregroundImage": "./assets/images/adaptive-icon.png",
27+
"backgroundColor": "#ffffff"
28+
}
29+
},
30+
"web": {
31+
"favicon": "./assets/images/favicon.png"
32+
}
33+
}
34+
}
91.1 KB
Binary file not shown.
17.1 KB
Loading
1.43 KB
Loading

test/Expo42/assets/images/icon.png

21.9 KB
Loading
47.3 KB
Loading

0 commit comments

Comments
 (0)