-
Notifications
You must be signed in to change notification settings - Fork 7
/
BorderLayoutExample1.js
24 lines (19 loc) · 1.06 KB
/
BorderLayoutExample1.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
import React, { Component, View, Text } from 'react-native';
import { Layout, Top, Left, Right, Bottom } from './lib/BorderLayout';
export default class BorderLayoutExample1 extends Component {
render() {
return (
<Layout style={{ flex: 1, marginTop: 20 }}>
<Left><Text style={{ borderColor: 'gray', borderWidth: 1 }}>LEFT 1</Text></Left>
<Right><Text style={{ borderColor: 'gray', borderWidth: 1 }}>RIGHT 1</Text></Right>
<Top><Text style={{ borderColor: 'gray', borderWidth: 1 }}>TOP 1</Text></Top>
<Top><Text style={{ borderColor: 'gray', borderWidth: 1 }}>TOP 2</Text></Top>
<Bottom><Text style={{ borderColor: 'gray', borderWidth: 1 }}>BOTTOM 1</Text></Bottom>
<Bottom><Text style={{ borderColor: 'gray', borderWidth: 1 }}>BOTTOM 2</Text></Bottom>
<Left><Text style={{ borderColor: 'gray', borderWidth: 1 }}>LEFT 2</Text></Left>
<Right><Text style={{ borderColor: 'gray', borderWidth: 1 }}>RIGHT 2</Text></Right>
<View style={{ borderColor: 'gray', borderWidth: 1, flex: 1 }}><Text>Content</Text></View>
</Layout>
);
}
}