-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path7-stretch-disabled.js
48 lines (45 loc) · 1.12 KB
/
7-stretch-disabled.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
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { Block, Grid, Section } from 'react-native-responsive-layout';
const styles = StyleSheet.create({
text: {
textAlign: 'center',
color: '#02326b',
fontSize: 40,
lineHeight: 80,
},
});
export default () => (
<Grid>
<Section>
<Block>
<View style={{ height: 80, backgroundColor: '#d4e7fe' }}>
<Text style={styles.text}>Header</Text>
</View>
</Block>
</Section>
<Section>
<Block size="1/4">
<View>
<View style={{ backgroundColor: '#b2d4fe' }}>
<Text style={styles.text}>L</Text>
</View>
</View>
</Block>
<Block size="stretch">
<View>
<View style={{ backgroundColor: '#91c2fd' }}>
<Text style={styles.text}>Content</Text>
</View>
</View>
</Block>
</Section>
<Section>
<Block>
<View style={{ height: 80, backgroundColor: '#6faffd' }}>
<Text style={styles.text}>Footer</Text>
</View>
</Block>
</Section>
</Grid>
);