-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
82 lines (76 loc) · 1.93 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {useState} from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
} from 'react-native';
import AppText from './components/core/AppText';
import {Colors, Metrics, Styles} from './components/theme';
import TopicsList from './components/TopicsList';
import Styling from './components/slides/Styling';
import ScalingStyles from './components/slides/ScalingStyles';
const App: () => React$Node = () => {
const [topicToShow, toggleTopicToShow] = useState(null);
return (
<>
<StatusBar barStyle="dark-content" />
<SafeAreaView style={styles.safeArea}>
<ScrollView
contentInsetAdjustmentBehavior="automatic"
style={styles.scrollView}>
<View style={styles.sectionContainer}>
<AppText centered style={[Styles.h1]}>
Intro to React Native {'\r'}
<AppText style={[Styles.h2]}>(Layout and Styling)</AppText>
</AppText>
<TopicsList />
</View>
</ScrollView>
<View style={styles.footer}>
<AppText style={styles.footerText}>Mozafar @kabaros</AppText>
<AppText style={styles.footerText}>
github.com/kabaros/ReactNativeTalk
</AppText>
</View>
</SafeAreaView>
</>
);
};
const styles = StyleSheet.create({
scrollView: {
backgroundColor: Colors.background,
},
sectionContainer: {
marginTop: Metrics.section,
paddingHorizontal: Metrics.section,
},
sectionTitle: {
textAlign: 'center',
},
footer: {
// backgroundColor: 'black',
// height: 30,
backgroundColor: Colors.footer,
alignItems: 'flex-end',
margin: 20,
},
footerText: {
...Styles.small,
color: Colors.lighterText,
},
safeArea: {
backgroundColor: Colors.footer,
flex: 1,
},
});
export default App;