Skip to content

Commit e98d3cd

Browse files
nicklockwoodfacebook-github-bot-3
authored andcommitted
Added single border examples
Reviewed By: sahrens Differential Revision: D2622604 fb-gh-sync-id: 28205e27a323e41c6e7f11b7d4a41add4e57be71
1 parent a797be6 commit e98d3cd

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Examples/UIExplorer/BorderExample.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ var styles = StyleSheet.create({
9191
width: 100,
9292
height: 100
9393
},
94+
border8: {
95+
width: 60,
96+
height: 60,
97+
borderColor: 'black',
98+
marginRight: 10,
99+
backgroundColor: 'lightgrey',
100+
},
94101
});
95102

96103
exports.title = 'Border';
@@ -159,4 +166,18 @@ exports.examples = [
159166
);
160167
}
161168
},
169+
{
170+
title: 'Single Borders',
171+
description: 'top, left, bottom right',
172+
render() {
173+
return (
174+
<View style={{flexDirection: 'row'}}>
175+
<View style={[styles.box, styles.border8, {borderTopWidth: 5}]} />
176+
<View style={[styles.box, styles.border8, {borderLeftWidth: 5}]} />
177+
<View style={[styles.box, styles.border8, {borderBottomWidth: 5}]} />
178+
<View style={[styles.box, styles.border8, {borderRightWidth: 5}]} />
179+
</View>
180+
);
181+
}
182+
},
162183
];

0 commit comments

Comments
 (0)