-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
32 lines (29 loc) · 973 Bytes
/
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
import React, {Component} from 'react';
import {SafeAreaView, StyleSheet, ScrollView, View, Text} from 'react-native';
import {Colors} from 'react-native/Libraries/NewAppScreen';
import TextCategories from './components/TextCategories';
import {MAIN_CATEGORIES} from './premade_data/categories.js';
export default class App extends Component {
render() {
return (
<View>
<SafeAreaView style={styles.container}>
<ScrollView
contentInsetAdjustmentBehavior="automatic"
style={styles.scrollView}>
<View style={styles.mainContent}>
<TextCategories title="Home" categories={MAIN_CATEGORIES} />
</View>
</ScrollView>
</SafeAreaView>
</View>
);
}
}
const styles = StyleSheet.create({
container: {width: '100%'},
scrollView: {
backgroundColor: Colors.lighter,
},
mainContent: {width: '100%', alignItems: 'center', justifyContent: 'center'},
});