Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions blog/2019-05-28-hola.md

This file was deleted.

17 changes: 0 additions & 17 deletions blog/2019-05-29-hello-world.md

This file was deleted.

13 changes: 0 additions & 13 deletions blog/2019-05-30-welcome.md

This file was deleted.

33 changes: 18 additions & 15 deletions docs/appDrawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ id: app-drawer
title: App drawer
---

Creating an app drawer like layout is very common and with NativeBase's SimpleGrid make this extremely simple while still keeping it extremely customisable. Here is an example to illustrate it.
Creating an app drawer like layout is very common using FlatList. Here is an example to illustrate it.

```SnackPlayer name=AppDrawer
import React from 'react';
import {
IconButton,
SimpleGrid,
FlatList,
Icon,
NativeBaseProvider,
Box,
Expand Down Expand Up @@ -41,19 +41,22 @@ function AppDrawer() {
];

return (
<SimpleGrid columns={4} spacingY={8} spacingX={4}>
{icons.map((icon) => (
<IconButton
borderRadius="full"
bg={icon.bg}
variant="solid"
p="3"
icon={
<Icon color="white" name={icon.name} as={MaterialIcons} size="sm" />
}
/>
))}
</SimpleGrid>
<FlatList numColumns={4} m={"-8px"}
data={icons}
renderItem={({item}) => {
return (
<IconButton
m={'8px'}
borderRadius="full"
bg={item.bg}
variant="solid"
p="3"
icon={
<Icon color="white" name={item.name} as={MaterialIcons} size="sm" />
}
/>
)
}} />
);
}

Expand Down
89 changes: 0 additions & 89 deletions docs/migration/Accordion.md

This file was deleted.

2 changes: 1 addition & 1 deletion versioned_docs/version-3.2.1/appDrawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ id: app-drawer
title: App drawer
---

Creating an app drawer like layout is very common and with NativeBase's SimpleGrid make this extremely simple while still keeping it extremely customisable. Here is an example to illustrate it.
Creating an app drawer like layout is very common using FlatList. Here is an example to illustrate it.

```SnackPlayer name=AppDrawer
import React from 'react';
Expand Down