Skip to content

Commit 921a14e

Browse files
committed
Update playground
1 parent d499f5f commit 921a14e

File tree

1 file changed

+18
-2
lines changed
  • example/src/typescript/screens/Playground

1 file changed

+18
-2
lines changed

example/src/typescript/screens/Playground/index.tsx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import { ScrollView, Text } from 'react-native'
3-
import { Box, Columns, Column, Stack, Inline, Tiles, FillView } from '@mobily/stacks'
3+
import { Box, Columns, Column, Stack, Inline, Tiles, FillView, Rows, Row } from '@mobily/stacks'
44

55
import { Placeholder } from '../../components/Placeholder'
66

@@ -9,14 +9,30 @@ export const Playground = () => {
99
<ScrollView>
1010
<Box padding={2}>
1111
<Stack space={2}>
12+
<Text>Rows</Text>
13+
<Box style={{ height: 400 }}>
14+
<Rows space={14} alignX="center">
15+
<Row>
16+
<Box alignX="center" alignY="center" flex="fluid">
17+
<Placeholder width={200} />
18+
</Box>
19+
</Row>
20+
<Row>
21+
<Placeholder />
22+
</Row>
23+
</Rows>
24+
</Box>
25+
1226
<Text>Columns</Text>
1327
<Stack space={3}>
1428
<Columns space={1}>
1529
<Column>
1630
<Text>C1</Text>
1731
</Column>
1832
<Column>
19-
<Text>C2</Text>
33+
<Box alignX="center">
34+
<Text>C2</Text>
35+
</Box>
2036
</Column>
2137
<Column>
2238
<Text>C3</Text>

0 commit comments

Comments
 (0)