Skip to content

Commit 5cf5cde

Browse files
authored
Merge pull request #325 from GeekyAnts/staging
Staging
2 parents 500cfba + 051d53a commit 5cf5cde

File tree

280 files changed

+1006
-810
lines changed

Some content is hidden

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

280 files changed

+1006
-810
lines changed

docs.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
"3.1.x": "3.1.0",
1111
"3.2.x": "3.2.2",
1212
"3.3.x": "3.3.10",
13-
"3.4.x": "3.4.11",
13+
"3.4.x": "3.4.19",
1414
},
1515
componentOfTheWeek: {
1616
switch: "https://www.youtube.com/embed/VGUhi8IQHDw",

docs/3.0.x/accessibility.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ NativeBase comes with the latest accessibility standards out of the box includin
77

88
## Accessible Roles
99

10-
NativeBase uses [React Native ARIA](https://react-native-aria.geekyants.com/) to implements [WAI-ARIA](https://www.w3.org/TR/wai-aria-1.2/) standards to its components. This is designed to provide meaning for controls that aren't built using components provided by the platform.
10+
NativeBase uses [React Native ARIA](https://react-native-aria.geekyants.com/) to implement [WAI-ARIA](https://www.w3.org/TR/wai-aria-1.2/) standards to its components. This is designed to provide meaning for controls that aren't built using components provided by the platform.
1111

1212
## Accessible Labels
1313

1414
When a view is marked as accessible, it is a good practice to set an `accessibilityLabel` on the view, so that people who use voice-over know what element they have selected. Voice-over will read this string when a user selects the associated element. NativeBase with the use of [React Native ARIA](https://www.notion.so/Accessibility-83852d7c4b094e69a3e4f1047994bd1c) does this for you out of the box.
1515

1616
## Keyboard Navigation
1717

18-
Many complex components, like Tabs and Dialog, come with expectations from users on how to interact with their content using a keyboard or other non-mouse input modalities. NativeBase Primitives provide basic keyboard support in accordance with the [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices-1.2/).
18+
Many complex components, like Tabs and Dialog, come with expectations from users on how to interact with their content using a keyboard or other non-mouse input modalities. NativeBase Primitives provide basic keyboard support in accordance with the [WAI-ARIA authoring practices](https://www.w3.org/WAI/ARIA/apg/).
1919

2020
## Focus Management
2121

2222
Proper keyboard navigation and good labelling often go hand-in-hand with managing focus. When a user interacts with a component and something changes as a result, it's often helpful to move focus with the interaction. And for screen reader users, moving focus often results in an announcement to convey the new context, which relies on proper labelling.
2323

24-
In many NativeBase Components, we move focus based on the interactions a user normally takes in a given component. For example, in `Modal`, when the modal is opened, the focus is programmatically moved to the `first focusable element` and trapped inside the modal to anticipate a response to the prompt.
24+
In many NativeBase Components, we move focus based on the interactions a user normally makes in a given component. For example, in `Modal`, when the modal is opened, the focus is programmatically moved to the `first focusable element` and trapped inside the modal to anticipate a response to the prompt.

docs/3.0.x/alert-dialog.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import { ComponentTheme } from '../../src/components';
99

1010
## Import
1111

12-
- `AlertDialog`: provides context and state for the dialog.
13-
- `AlertDialog.Header`: contains the title announced by screen readers.
14-
- `AlertDialog.Body`: contains the description announced by screen readers.
15-
- `AlertDialog.Footer`: contains the actions of the dialog.
12+
- `AlertDialog`: Provides context and state for the dialog.
13+
- `AlertDialog.Header`: Contains the title announced by screen readers.
14+
- `AlertDialog.Body`: Contains the description announced by screen readers.
15+
- `AlertDialog.Footer`: Contains the actions of the dialog.
1616
- `AlertDialog.Content`: The wrapper for the alert dialog's content.
1717
- `AlertDialog.CloseButton`: The button that closes the dialog.
1818

@@ -135,7 +135,7 @@ AlertDialog and its components compose the **[Modal](/modal)** component, so all
135135
136136
## Accessibility
137137
138-
Adheres to the [Alert and Message Dialogs WAI-ARIA design pattern.](https://www.w3.org/TR/wai-aria-practices-1.2/#alertdialog)
138+
Adheres to the [Alert and Message Dialogs WAI-ARIA design pattern.](https://www.w3.org/WAI/ARIA/apg/#alertdialog)
139139
140140
### Keyboard Interactions
141141

docs/3.0.x/box.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This is a generic component for low level layout needs. It is similar to a [`div
2525

2626
### With Linear gradient
2727

28-
If you're using [Expo](https://docs.expo.io/) managed or bare workflow, you can install [expo-linear-gradient](https://docs.expo.io/versions/latest/sdk/linear-gradient/) and configure it in the [NativeBaseProvider](setup-provider#add-external-dependencies-optional) as shown below.
28+
If you're using [Expo](https://docs.expo.dev/index.html) managed or bare workflow, you can install [expo-linear-gradient](https://docs.expo.dev/versions/latest/sdk/linear-gradient/) and configure it in the [NativeBaseProvider](setup-provider#add-external-dependencies-optional) as shown below.
2929

3030
```jsx isLive=true
3131
import React from 'react';

docs/3.0.x/building-drawer-navigation.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Common pattern in navigation is to use drawer from left (sometimes right) side f
1010
Here is an example to show how easily and quickly we can use React Native's [DrawerNavigation](https://reactnavigation.org/docs/drawer-based-navigation/) in NB.
1111

1212
```jsx isSnackPlayer name="Building Drawer Navigation"
13-
import * as React from 'react';
14-
import { NavigationContainer } from '@react-navigation/native';
13+
import * as React from "react";
14+
import { NavigationContainer } from "@react-navigation/native";
1515
import {
1616
createDrawerNavigator,
1717
DrawerContentScrollView,
18-
} from '@react-navigation/drawer';
19-
import { MaterialCommunityIcons } from '@expo/vector-icons';
18+
} from "@react-navigation/drawer";
19+
import { MaterialCommunityIcons } from "@expo/vector-icons";
2020
import {
2121
NativeBaseProvider,
2222
Button,
@@ -30,7 +30,8 @@ import {
3030
HStack,
3131
Divider,
3232
Icon,
33-
} from 'native-base';
33+
} from "native-base";
34+
global.__reanimatedWorkletInit = () => {};
3435
const Drawer = createDrawerNavigator();
3536
function Component(props) {
3637
return (
@@ -52,18 +53,18 @@ function Component(props) {
5253

5354
const getIcon = (screenName) => {
5455
switch (screenName) {
55-
case 'Inbox':
56-
return 'email';
57-
case 'Outbox':
58-
return 'send';
59-
case 'Favorites':
60-
return 'heart';
61-
case 'Archive':
62-
return 'archive';
63-
case 'Trash':
64-
return 'trash-can';
65-
case 'Spam':
66-
return 'alert-circle';
56+
case "Inbox":
57+
return "email";
58+
case "Outbox":
59+
return "send";
60+
case "Favorites":
61+
return "heart";
62+
case "Archive":
63+
return "archive";
64+
case "Trash":
65+
return "trash-can";
66+
case "Spam":
67+
return "alert-circle";
6768
default:
6869
return undefined;
6970
}
@@ -90,8 +91,8 @@ function CustomDrawerContent(props) {
9091
rounded="md"
9192
bg={
9293
index === props.state.index
93-
? 'rgba(6, 182, 212, 0.1)'
94-
: 'transparent'
94+
? "rgba(6, 182, 212, 0.1)"
95+
: "transparent"
9596
}
9697
onPress={(event) => {
9798
props.navigation.navigate(name);
@@ -100,15 +101,15 @@ function CustomDrawerContent(props) {
100101
<HStack space={7} alignItems="center">
101102
<Icon
102103
color={
103-
index === props.state.index ? 'primary.500' : 'gray.500'
104+
index === props.state.index ? "primary.500" : "gray.500"
104105
}
105106
size={5}
106107
as={<MaterialCommunityIcons name={getIcon(name)} />}
107108
/>
108109
<Text
109110
fontWeight={500}
110111
color={
111-
index === props.state.index ? 'primary.500' : 'gray.700'
112+
index === props.state.index ? "primary.500" : "gray.700"
112113
}
113114
>
114115
{name}

docs/3.0.x/building-footer-tabs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function Example() {
3232
return (
3333
<NativeBaseProvider>
3434
<Box flex={1} bg="white" safeAreaTop>
35-
<Center flex={1}></Center>
35+
3636
<HStack bg="primary.500" alignItems="center" safeAreaBottom shadow={6}>
3737
<Pressable
3838
cursor="pointer"

docs/3.0.x/button.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@ import { Button, ButtonGroup } from 'native-base';
8080

8181
## Accessibility
8282

83-
- Button has `role` set to [button](https://www.w3.org/TR/wai-aria-practices-1.2/#button).
83+
- Button has `role` set to [button](https://www.w3.org/WAI/ARIA/apg/#button).
8484
- When Button has focus, Space or Enter activates it.

docs/3.0.x/center.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Center can be used to nicely position icons in the center and add frames around
3535

3636
### Square and Circle
3737

38-
Square and Circle automatically centers their children.
38+
Square and Circle automatically center their children.
3939

4040
```ComponentSnackPlayer path=composites,Center,SquareCircle.tsx
4141

docs/3.0.x/changelog.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ title: Changelog
3333

3434
- Fixed Radio Size issue on happening on iOS and Android. [#3913](https://github.com/GeekyAnts/NativeBase/pull/3913)
3535

36-
For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.7).
36+
For more details, visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.7).
3737

3838
## V3.0.6
3939

4040
## Minor fix
4141

4242
- Spinner visibility issue fixed
4343

44-
For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.6).
44+
For more details, visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.6).
4545

4646
## V3.0.5
4747

4848
## Minor fix
4949

5050
- Fixed bold and italics issue in typography
5151

52-
For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.5).
52+
For more details, visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.5).
5353

5454
## V3.0.4
5555

@@ -75,7 +75,7 @@ For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/relea
7575

7676
- Fix custom fonts not working on android for some cases [#3821](https://github.com/GeekyAnts/NativeBase/pull/3821)
7777

78-
For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.4).
78+
For more details, visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.4).
7979

8080
## V3.0.3
8181

@@ -105,23 +105,23 @@ For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/relea
105105

106106
- Button type fixes
107107

108-
For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.3).
108+
For more details, visit[releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.3).
109109

110110
## V3.0.2
111111

112112
## Version bump
113113

114114
- Version bumped from v3.0.1 to v3.0.2
115115

116-
For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.2).
116+
For more details, visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.2).
117117

118118
## V3.0.1
119119

120120
## Image link fixes in README.md
121121

122122
- Images are working in NPM
123123

124-
For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.1).
124+
For more details, visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.1).
125125

126126
## V3.0.0
127127

@@ -137,4 +137,4 @@ For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/relea
137137

138138
- Fixed Text component to accept strikeThrough and underline
139139

140-
For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.0).
140+
For more details, visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.0).

docs/3.0.x/checkbox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ The `Checkbox` component is used in forms when a user needs to select multiple v
9595

9696
## Accessibility
9797

98-
Uses React Native ARIA [@react-native-aria/checkbox](https://react-native-aria.geekyants.com/docs/useCheckbox) which follows the [Checkbox WAI-ARIA design pattern](https://www.w3.org/TR/wai-aria-practices-1.2/#checkbox).
98+
Uses React Native ARIA [@react-native-aria/checkbox](https://react-native-aria.geekyants.com/docs/useCheckbox) which follows the [Checkbox WAI-ARIA design pattern](https://www.w3.org/WAI/ARIA/apg/#checkbox).
9999

100100
### Keyboard Interactions
101101

0 commit comments

Comments
 (0)