Skip to content

Commit 45f2372

Browse files
committed
chore: init project
0 parents  commit 45f2372

28 files changed

Lines changed: 26031 additions & 0 deletions

.expo-shared/assets.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"e997a5256149a4b76e6bfd6cbf519c5e5a0f1d278a3d8fa1253022b03c90473b": true,
3+
"af683c96e0ffd2cf81287651c9433fa44debc1220ca7cb431fe482747f34a505": true,
4+
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
5+
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
6+
}

.gitignore

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

App.tsx

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

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": "cloudflare-ip-tester-app",
4+
"slug": "cloudflare-ip-tester-app",
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+
}

assets/fonts/SpaceMono-Regular.ttf

91.1 KB
Binary file not shown.

assets/images/adaptive-icon.png

17.1 KB
Loading

assets/images/favicon.png

1.43 KB
Loading

assets/images/icon.png

21.9 KB
Loading

assets/images/splash.png

46.2 KB
Loading

babel.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = function(api) {
2+
api.cache(true);
3+
return {
4+
presets: ['babel-preset-expo']
5+
};
6+
};

0 commit comments

Comments
 (0)