Skip to content

Commit c33a7dd

Browse files
committed
Add an example
1 parent c3c1526 commit c33a7dd

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

‎packages/rn-tester/js/examples/Border/BorderExample.js‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,23 @@ const styles = StyleSheet.create({
124124
borderRightWidth: 5,
125125
borderStyle: 'dashed',
126126
},
127+
borderLogical: {
128+
marginRight: 10,
129+
borderBlockStartWidth: 10,
130+
borderBlockStartColor: 'red',
131+
borderBlockEndWidth: 20,
132+
borderBlockEndColor: 'green',
133+
borderInlineStartWidth: 30,
134+
borderInlineStartColor: 'blue',
135+
borderInlineEndWidth: 40,
136+
borderInlineEndColor: 'yellow',
137+
},
138+
borderLogicalShorthands: {
139+
borderBlockWidth: 10,
140+
borderBlockColor: 'red',
141+
borderInlineWidth: 20,
142+
borderInlineColor: 'blue',
143+
},
127144
border9: {
128145
borderWidth: 10,
129146
borderTopLeftRadius: 10,
@@ -387,6 +404,22 @@ export default {
387404
);
388405
},
389406
},
407+
{
408+
title: 'Logical Borders',
409+
name: 'logical-borders',
410+
description: 'borderBlock* & borderInline*',
411+
render: function (): React.Node {
412+
return (
413+
<View testID="border-test-logical-borders" style={styles.wrapper}>
414+
<View style={[styles.box, styles.borderLogical]} />
415+
<View
416+
style={[styles.box, styles.borderLogical, {direction: 'rtl'}]}
417+
/>
418+
<View style={[styles.box, styles.borderLogicalShorthands]} />
419+
</View>
420+
);
421+
},
422+
},
390423
{
391424
title: 'Corner Radii',
392425
name: 'corner-radii',

0 commit comments

Comments
 (0)