Skip to content

Commit e87cfd2

Browse files
committed
Update Drawer code snippet
1 parent 004b9bd commit e87cfd2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/drawer/drawer.api.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,13 @@
5959
{"name": "testID", "type": "string", "description": "The test id for e2e tests"}
6060
],
6161
"snippet": [
62-
"<Drawer rightItems:{[{text: 'Read', onPress: () => console.log('read pressed')}, {text: 'Delete', onPress: () => console.log('delete pressed')}]}$1>",
63-
" <ListItem><Text grey10 text60 marginL-10>The item</Text></ListItem>$2",
62+
"<Drawer",
63+
" rightItems={[{text: 'Read', background: Colors.blue30, onPress: () => console.log('read pressed')}]$1}",
64+
" leftItem={{text: 'Delete', background: Colors.red30, onPress: () => console.log('delete pressed')}$2}",
65+
">",
66+
" <View centerV padding-s4 bg-white style={{height: 60}}>",
67+
" <Text text70>Item</Text>",
68+
" </View>",
6469
"</Drawer>"
6570
]
6671
}

0 commit comments

Comments
 (0)