Skip to content

Commit 9642216

Browse files
committed
Profile, List course
1 parent b7e92f2 commit 9642216

File tree

7 files changed

+546
-34
lines changed

7 files changed

+546
-34
lines changed

App/App.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import React, {Component} from "react";
22
import {Platform, StatusBar, StyleSheet, AppRegistry} from 'react-native';
33
import { createRootNavigator } from "./navigation/Navigation";
44
import { isSignedIn } from "./auth/Auth";
5-
import { SaveCourse } from "./functions/functions";
6-
import { SafeAreaView } from 'react-navigation';
75
import { SafeAreaProvider } from 'react-native-safe-area-context';
86

97

@@ -25,21 +23,18 @@ export default class App extends Component {
2523
}
2624

2725
render() {
28-
// return (
29-
// <SaveCourse/>
30-
// );
3126
let { checkedSignIn, signedIn } = this.state;
3227

3328
// If we haven't checked AsyncStorage yet, don't render anything (better ways to do this)
3429
if (!checkedSignIn) {
3530
return null;
3631
}
37-
signedIn = true;
3832
const Layout = createRootNavigator(signedIn);
3933
return (
40-
<SafeAreaProvider>
34+
<SafeAreaProvider>
4135
<Layout />
42-
</SafeAreaProvider>
36+
</SafeAreaProvider>
37+
4338
);
4439
}
4540
}

App/navigation/Navigation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import LoginScreen from '../view/Login';
77
import InscriptionScreen from '../view/Inscription';
88
import Activity from "../view/Activity";
99
import Home from '../view/Home'
10+
import Profil from '../view/Profile'
1011
import Icon from "react-native-vector-icons/FontAwesome5";
1112

1213
const headerStyle = {
@@ -51,7 +52,7 @@ export const SignedIn = createAppContainer(createBottomTabNavigator(
5152
}
5253
},
5354
Profil: {
54-
screen: Home,
55+
screen: Profil,
5556
navigationOptions: {
5657
tabBarIcon: ({ tintColor }) => (
5758
<Icon name="user-alt" size={25} color={tintColor} />

App/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"react-devtools": "^3.6.3",
3232
"react-dom": "16.9.0",
3333
"react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz",
34+
"react-native-chart-kit": "2.6.0",
3435
"react-native-datepicker": "^1.7.2",
3536
"react-native-elements": "^1.2.7",
3637
"react-native-firebase": "^5.6.0",
@@ -46,6 +47,7 @@
4647
"react-native-scl-alert": "^1.2.1",
4748
"react-native-screens": "2.0.0-alpha.12",
4849
"react-native-stopwatch-timer": "0.0.21",
50+
"react-native-svg-charts": "^5.3.0",
4951
"react-native-vector-icons": "^6.6.0",
5052
"react-native-view-shot": "^3.1.2",
5153
"react-native-web": "^0.11.7",
@@ -56,7 +58,8 @@
5658
"react-navigation-transitions": "^1.0.12",
5759
"react-redux": "^7.1.3",
5860
"redux": "^4.0.4",
59-
"yup": "^0.28.0"
61+
"yup": "^0.28.0",
62+
"react-native-svg": "9.13.3"
6063
},
6164
"devDependencies": {
6265
"babel-preset-expo": "^7.1.0",

0 commit comments

Comments
 (0)