-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
42 lines (37 loc) · 668 Bytes
/
Copy pathApp.js
File metadata and controls
42 lines (37 loc) · 668 Bytes
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
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
class App extends Component {
render() {
const items = Array(3000).fill(0).map((_, index) => {
return (
<View style={styles.item} key={index} />
);
});
return (
<View
style={styles.container}
>
{items}
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flexWrap: 'wrap',
backgroundColor: 'white',
display: 'flex',
flexDirection: 'row',
},
item: {
width: 20,
height: 20,
backgroundColor: 'black',
margin: 2,
},
});
export default App;