Skip to content

Commit cf00f44

Browse files
committed
initial commit :)
0 parents  commit cf00f44

File tree

22 files changed

+12770
-0
lines changed

22 files changed

+12770
-0
lines changed

.expo-shared/assets.json

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

.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

App.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { StatusBar } from "expo-status-bar";
2+
import React, { useEffect, useState } from "react";
3+
import { StyleSheet, Text, View } from "react-native";
4+
import Sqlite from "./src/services/sqlite";
5+
import Routes from "./src/routes";
6+
import { NavigationContainer } from "@react-navigation/native";
7+
import { SafeAreaProvider } from "react-native-safe-area-context";
8+
9+
export default function App() {
10+
const [conf, setConf] = useState(false);
11+
12+
useEffect(() => {
13+
console.log('App.js loading...')
14+
new Sqlite(() => {
15+
setConf(true);
16+
});
17+
}, []);
18+
19+
return (
20+
<SafeAreaProvider>
21+
{conf ? (
22+
<NavigationContainer>
23+
<Routes />
24+
</NavigationContainer>
25+
) : (
26+
<></>
27+
)}
28+
</SafeAreaProvider>
29+
);
30+
}
31+
32+
const styles = StyleSheet.create({
33+
container: {
34+
flex: 1,
35+
backgroundColor: "#fff",
36+
alignItems: "center",
37+
justifyContent: "center",
38+
},
39+
});

app.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"expo": {
3+
"name": "chain",
4+
"slug": "chain",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"splash": {
9+
"image": "./assets/splash.png",
10+
"resizeMode": "contain",
11+
"backgroundColor": "#ffffff"
12+
},
13+
"updates": {
14+
"fallbackToCacheTimeout": 0
15+
},
16+
"assetBundlePatterns": [
17+
"**/*"
18+
],
19+
"ios": {
20+
"supportsTablet": true
21+
},
22+
"android": {
23+
"adaptiveIcon": {
24+
"foregroundImage": "./assets/adaptive-icon.png",
25+
"backgroundColor": "#FFFFFF"
26+
},
27+
"package": "com.greedy"
28+
},
29+
"web": {
30+
"favicon": "./assets/favicon.png"
31+
}
32+
}
33+
}

assets/adaptive-icon.png

17.1 KB
Loading

assets/favicon.png

1.43 KB
Loading

assets/icon.png

21.9 KB
Loading

assets/splash.png

47.3 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+
};

package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"main": "node_modules/expo/AppEntry.js",
3+
"scripts": {
4+
"start": "expo start",
5+
"android": "expo start --android",
6+
"ios": "expo start --ios",
7+
"web": "expo start --web",
8+
"eject": "expo eject"
9+
},
10+
"dependencies": {
11+
"@react-native-async-storage/async-storage": "^1.15.5",
12+
"@react-native-picker/picker": "^1.16.4",
13+
"@react-navigation/native": "^5.9.4",
14+
"@react-navigation/stack": "^5.14.5",
15+
"expo": "~42.0.1",
16+
"expo-sqlite": "~9.2.1",
17+
"expo-status-bar": "~1.0.4",
18+
"react": "16.13.1",
19+
"react-dom": "16.13.1",
20+
"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
21+
"react-native-gesture-handler": "^1.10.3",
22+
"react-native-paper": "^4.9.2",
23+
"react-native-picker-select": "^8.0.4",
24+
"react-native-safe-area-context": "^3.2.0",
25+
"react-native-screens": "^3.4.0",
26+
"react-native-web": "~0.13.12"
27+
},
28+
"devDependencies": {
29+
"@babel/core": "^7.9.0"
30+
},
31+
"private": true
32+
}

0 commit comments

Comments
 (0)