|
@@ -1,10 +1,29 @@
|
1
|
1
|
import { StatusBar } from 'expo-status-bar';
|
2
|
2
|
import React from 'react';
|
3
|
|
-import { StyleSheet, Text, View } from 'react-native';
|
|
3
|
+import { StyleSheet, Text, View, TextInput } from 'react-native';
|
|
4
|
+import { Button } from 'react-native-web';
|
4
|
5
|
|
5
|
6
|
export default function App() {
|
6
|
7
|
return (
|
7
|
|
- <View style={styles.container}>
|
|
8
|
+ <View style={styles.container, {
|
|
9
|
+ flexDirection: "column"
|
|
10
|
+ }}>
|
|
11
|
+ <View style={styles.controlBar}>
|
|
12
|
+ <View style={{
|
|
13
|
+ flexDirection: 'row'
|
|
14
|
+ }}>
|
|
15
|
+ <Text>Objectif</Text>
|
|
16
|
+ <TextInput/>
|
|
17
|
+ </View>
|
|
18
|
+ <View style={{
|
|
19
|
+ alignItems: 'flex-end',
|
|
20
|
+ flexDirection: 'row'
|
|
21
|
+ }}>
|
|
22
|
+ <Button title={"Jour"}></Button>
|
|
23
|
+ <Button title={"Mois"}></Button>
|
|
24
|
+ <Button title={"YTD"}></Button>
|
|
25
|
+ </View>
|
|
26
|
+ </View>
|
8
|
27
|
<Text>Open up App.js to start working on your app!</Text>
|
9
|
28
|
<StatusBar style="auto" />
|
10
|
29
|
</View>
|
|
@@ -18,4 +37,9 @@ const styles = StyleSheet.create({
|
18
|
37
|
alignItems: 'center',
|
19
|
38
|
justifyContent: 'center',
|
20
|
39
|
},
|
|
40
|
+ controlBar: {
|
|
41
|
+ flex: 1,
|
|
42
|
+ flexDirection: "row",
|
|
43
|
+ justifyContent: 'space-between'
|
|
44
|
+ }
|
21
|
45
|
});
|