Skip to content

Commit 5dedb50

Browse files
authored
Merge pull request #139 from GeekyAnts/staging
Version 3.2.2
2 parents 32be020 + 2d4a595 commit 5dedb50

File tree

284 files changed

+11833
-3464
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

284 files changed

+11833
-3464
lines changed

blog/2019-05-28-hola.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

blog/2019-05-29-hello-world.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

blog/2019-05-30-welcome.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/FAB.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ import { Fab } from 'native-base';
1717

1818
### Basic
1919

20-
```ComponentSnackPlayer path=composites,Fab,Basic.tsx
20+
```ComponentSnackPlayer path=components,composites,Fab,Basic.tsx
2121

2222
```
2323

2424
### Placement
2525

26-
```ComponentSnackPlayer path=composites,Fab,Placement.tsx
26+
```ComponentSnackPlayer path=components,composites,Fab,Placement.tsx
2727

2828
```
2929

3030
### Custom Position
3131

32-
```ComponentSnackPlayer path=composites,Fab,CustomPosition.tsx
32+
```ComponentSnackPlayer path=components,composites,Fab,CustomPosition.tsx
3333

3434
```
3535

docs/VStack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { VStack } from 'native-base';
1313

1414
## Usage
1515

16-
```ComponentSnackPlayer path=primitives,VStack,basic.tsx
16+
```ComponentSnackPlayer path=components,primitives,VStack,basic.tsx
1717

1818
```
1919

docs/ZStack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ title: ZStack
99

1010
### Basic
1111

12-
```ComponentSnackPlayer path=primitives,ZStack,example.tsx
12+
```ComponentSnackPlayer path=components,primitives,ZStack,example.tsx
1313

1414
```
1515

1616
### Items Centered
1717

1818
You can pass `alignItems="center"` `justifyContent="center"` to vertically and horizontally center the children.
1919

20-
```ComponentSnackPlayer path=primitives,ZStack,CenterStack.tsx
20+
```ComponentSnackPlayer path=components,primitives,ZStack,CenterStack.tsx
2121

2222
```
2323

docs/actionSheet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@ import { Actionsheet } from 'native-base';
2323

2424
### Usage
2525

26-
```ComponentSnackPlayer path=composites,Actionsheet,Usage.tsx
26+
```ComponentSnackPlayer path=components,composites,Actionsheet,Usage.tsx
2727

2828
```
2929

3030
### Composition
3131

32-
```ComponentSnackPlayer path=composites,Actionsheet,Composition.tsx
32+
```ComponentSnackPlayer path=components,composites,Actionsheet,Composition.tsx
3333

3434
```
3535

3636
### DisableOverlay
3737

38-
```ComponentSnackPlayer path=composites,Actionsheet,DisableOverlay.tsx
38+
```ComponentSnackPlayer path=components,composites,Actionsheet,DisableOverlay.tsx
3939

4040
```
4141

4242
### Icons
4343

44-
```ComponentSnackPlayer path=composites,Actionsheet,Icon.tsx
44+
```ComponentSnackPlayer path=components,composites,Actionsheet,Icon.tsx
4545

4646
```
4747

docs/alert.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ NativeBase exports 5 Alert related components:
1313

1414
- `Alert`: The wrapper for alert components.
1515
- `Alert.Icon`: The visual icon for the alert that changes based on the `status` prop.
16-
<!-- - `Alert.Title`: The title of the alert to be announced by screen readers. -->
17-
<!-- - `Alert.Description`: The description of the alert to be announced by screen readers. -->
16+
<!-- - `Alert.Title`: The title of the alert to be announced by screen readers. -->
17+
<!-- - `Alert.Description`: The description of the alert to be announced by screen readers. -->
1818

1919
```jsx
2020
import { Alert } from 'native-base';
@@ -24,31 +24,31 @@ import { Alert } from 'native-base';
2424

2525
### Basic
2626

27-
```ComponentSnackPlayer path=composites,Alert,usage.tsx
27+
```ComponentSnackPlayer path=components,composites,Alert,usage.tsx
2828

2929
```
3030

3131
### Status
3232

33-
```ComponentSnackPlayer path=composites,Alert,status.tsx
33+
```ComponentSnackPlayer path=components,composites,Alert,status.tsx
3434

3535
```
3636

3737
### Variant
3838

39-
```ComponentSnackPlayer path=composites,Alert,variant.tsx
39+
```ComponentSnackPlayer path=components,composites,Alert,variant.tsx
4040

4141
```
4242

4343
### Composition
4444

45-
```ComponentSnackPlayer path=composites,Alert,composition.tsx
45+
```ComponentSnackPlayer path=components,composites,Alert,composition.tsx
4646

4747
```
4848

4949
### Action
5050

51-
```ComponentSnackPlayer path=composites,Alert,action.tsx
51+
```ComponentSnackPlayer path=components,composites,Alert,action.tsx
5252

5353
```
5454

docs/alertDialog.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { AlertDialog } from 'native-base';
2424

2525
### Basic
2626

27-
```ComponentSnackPlayer path=composites,AlertDialog,Basic.tsx
27+
```ComponentSnackPlayer path=components,composites,AlertDialog,Basic.tsx
2828

2929
```
3030

@@ -40,7 +40,6 @@ AlertDialog and its components compose the **[Modal](modal.md)** component, so a
4040
| ------------------- | --------- | -------------------------------------------------------------- | ------- |
4141
| leastDestructiveRef | React.Ref | The least destructive action to get focus when dialog is open. | - |
4242

43-
4443
## Accessibility
4544

4645
Adheres to the [Alert and Message Dialogs WAI-ARIA design pattern.](https://www.w3.org/TR/wai-aria-practices-1.2/#alertdialog)
@@ -54,5 +53,3 @@ Adheres to the [Alert and Message Dialogs WAI-ARIA design pattern.](https://www.
5453
| Tab | Moves focus to the next focusable element. |
5554
| Shift + Tab | Moves focus to the previous focusable element. |
5655
| Esc | Closes the dialog and moves focus to AlertDialog.Trigger. |
57-
58-

docs/appDrawer.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ id: app-drawer
33
title: App drawer
44
---
55

6-
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.
6+
Creating an app drawer like layout is very common using FlatList. Here is an example to illustrate it.
77

88
```SnackPlayer name=AppDrawer
99
import React from 'react';
1010
import {
1111
IconButton,
12-
SimpleGrid,
12+
FlatList,
1313
Icon,
1414
NativeBaseProvider,
1515
Box,
@@ -41,19 +41,22 @@ function AppDrawer() {
4141
];
4242
4343
return (
44-
<SimpleGrid columns={4} spacingY={8} spacingX={4}>
45-
{icons.map((icon) => (
46-
<IconButton
47-
borderRadius="full"
48-
bg={icon.bg}
49-
variant="solid"
50-
p="3"
51-
icon={
52-
<Icon color="white" name={icon.name} as={MaterialIcons} size="sm" />
53-
}
54-
/>
55-
))}
56-
</SimpleGrid>
44+
<FlatList numColumns={4} m={"-8px"}
45+
data={icons}
46+
renderItem={({item}) => {
47+
return (
48+
<IconButton
49+
m={'8px'}
50+
borderRadius="full"
51+
bg={item.bg}
52+
variant="solid"
53+
p="3"
54+
icon={
55+
<Icon color="white" name={item.name} as={MaterialIcons} size="sm" />
56+
}
57+
/>
58+
)
59+
}} />
5760
);
5861
}
5962

0 commit comments

Comments
 (0)