-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.tsx
45 lines (42 loc) · 947 Bytes
/
App.tsx
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
import React from 'react';
import {Dimensions, ScrollView, StyleSheet, Text, View} from 'react-native';
const styles = StyleSheet.create({
container: {flexDirection: 'row', flexWrap: 'wrap'},
view: {
height: 2,
width: 1,
margin: 1,
backgroundColor: 'purple',
},
textContainer: {
position: 'absolute',
top: 0,
left: 0,
width: Dimensions.get('screen').width,
height: Dimensions.get('screen').height,
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
text: {
color: 'white',
fontSize: 50,
textAlign: 'center',
},
});
const App = () => {
return (
<>
<ScrollView>
<View style={styles.container}>
{Array(10000)
.fill(null)
.map((_, index) => (
<View key={index} style={styles.view} testID={`VIEW_${index}`} />
))}
</View>
</ScrollView>
</>
);
};
export default App;