-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
40 lines (37 loc) · 757 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
33
34
35
36
37
38
39
40
import React from 'react';
import {
Text,
SafeAreaView,
StyleSheet,
TextInput,
FlatList,
} from 'react-native';
const hundredItems = Array.from({length: 100}, (_, i) => i);
export default () => {
return (
<SafeAreaView style={styles.flex1}>
<FlatList
inverted
data={hundredItems}
renderItem={({item}) => <Text style={styles.text}>Item #{item}</Text>}
/>
<TextInput style={styles.input} />
</SafeAreaView>
);
};
const styles = StyleSheet.create({
flex1: {
flex: 1,
},
text: {
fontSize: 20,
width: '100%',
height: 40,
borderBottomWidth: StyleSheet.hairlineWidth,
},
input: {
height: 50,
width: '100%',
borderWidth: StyleSheet.hairlineWidth,
},
});