Skip to content

Commit c7ed8b5

Browse files
[Add] route system
1 parent 99e3129 commit c7ed8b5

File tree

15 files changed

+1161
-68
lines changed

15 files changed

+1161
-68
lines changed

.expo/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
> Why do I have a folder named ".expo" in my project?
2+
3+
The ".expo" folder is created when an Expo project is started using "expo start" command.
4+
5+
> What does the "packager-info.json" file contain?
6+
7+
The "packager-info.json" file contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator.
8+
9+
> What does the "settings.json" file contain?
10+
11+
The "settings.json" file contains the server configuration that is used to serve the application manifest.
12+
13+
> Should I commit the ".expo" folder?
14+
15+
No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.
16+
17+
Upon project creation, the ".expo" folder is already added to your ".gitignore" file.

.expo/settings.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"hostType": "lan",
3+
"lanType": "ip",
4+
"dev": true,
5+
"minify": false,
6+
"urlRandomness": null,
7+
"https": false
8+
}

frontend/App.js

+12-19
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,29 @@
1-
import React from 'react';
1+
import Constants from 'expo-constants';
22
import * as firebase from 'firebase';
3-
import { StyleSheet, Text, View } from 'react-native';
3+
import React from 'react';
4+
import { Provider } from 'react-redux';
5+
import { applyMiddleware, createStore } from 'redux';
6+
import thunk from 'redux-thunk';
7+
import Route from './src/navigation/main';
8+
import rootReducer from './src/redux/reducers';
9+
import AuthScreen from './src/screens/auth';
410

511

6-
import { Provider } from 'react-redux'
7-
import { createStore, applyMiddleware } from 'redux'
8-
import rootReducer from './src/redux/reducers'
9-
import thunk from 'redux-thunk'
1012
const store = createStore(rootReducer, applyMiddleware(thunk))
1113

1214

13-
import Constants from 'expo-constants'
14-
import AuthScreen from './src/screens/auth';
1515

1616

17-
if (firebase.apps.lenght === 0) {
17+
if (firebase.apps.length === 0) {
1818
firebase.initializeApp(Constants.manifest.web.config.firebase)
19+
} else {
20+
firebase.app()
1921
}
2022

2123
export default function App() {
2224
return (
2325
<Provider store={store} >
24-
<AuthScreen />
26+
<Route />
2527
</Provider>
2628
);
2729
}
28-
29-
const styles = StyleSheet.create({
30-
container: {
31-
flex: 1,
32-
backgroundColor: '#fff',
33-
alignItems: 'center',
34-
justifyContent: 'center',
35-
},
36-
});

frontend/app.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
"favicon": "./assets/favicon.png",
3030
"config": {
3131
"firebase": {
32-
"apiKey": "****",
33-
"authDomain": "****",
34-
"databaseURL": "****",
35-
"projectId": "****",
36-
"storageBucket": "****",
37-
"messagingSenderId": "****",
38-
"appId": "****",
39-
"measurementId": "****"
32+
"apiKey": "AIzaSyAN1v25_uLQJtuX8AiPdF0pa_kZIFxPw3w",
33+
"authDomain": "tiktok-4bd2a.firebaseapp.com",
34+
"databaseURL": "https://tiktok-4bd2a-default-rtdb.firebaseio.com",
35+
"projectId": "tiktok-4bd2a",
36+
"storageBucket": "tiktok-4bd2a.appspot.com",
37+
"messagingSenderId": "134821111588",
38+
"appId": "1:134821111588:web:ffb13bbfb6caca76e635b1",
39+
"measurementId": "G-FLKVD5RBXK"
4040
}
4141
}
4242
}

frontend/jsconfig.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {}
5+
},
6+
"exclude": [
7+
"node_modules",
8+
"dist"
9+
]
10+
}

0 commit comments

Comments
 (0)