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

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ title: Changelog
- Add a prop to render FAB outside of portal #3829
- Fix input padding(top/bottom) not working on android #3825
- Fix custom fonts not working on android for some cases #3821
- Fixed bold and italics issue in typography
- Spinner visibility issue fixed

For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.4).
2 changes: 1 addition & 1 deletion nb-plugins/component-snackplayer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const processNode = (node, parent) => {
return new Promise(async (resolve, reject) => {
try {
const params = parseParams(node.meta);
const NBversion = '3.0.4';
const NBversion = '3.0.6';
// Gather necessary Params
let name = params.name ? decodeURIComponent(params.name) : 'Example';
const description = params.description
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs-v-2",
"version": "3.0.4",
"version": "3.0.6",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Expand Down Expand Up @@ -35,7 +35,7 @@
"clsx": "^1.1.1",
"dedent": "^0.7.0",
"docusaurus-tailwindcss-loader": "file:plugins/docusaurus-tailwindcss-loader",
"native-base": "^3.0.4",
"native-base": "^3.0.6",
"object.fromentries": "^2.0.3",
"patch-package": "^6.4.7",
"postcss": "^7.0.34",
Expand Down
2 changes: 1 addition & 1 deletion remark-snackplayer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const processNode = (node, parent) => {
try {
const params = parseParams(node.meta);
const simplifedMeta = simplifyMeta(node.meta);
const NBversion = '3.0.4';
const NBversion = '3.0.6';
// Gather necessary Params
let name = simplifedMeta.name
? decodeURIComponent(simplifedMeta.name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,19 @@ AlertDialog and its components compose the **[Modal](modal.md)** component, so a
| ------------------- | --------- | -------------------------------------------------------------- | ------- |
| leastDestructiveRef | React.Ref | The least destructive action to get focus when dialog is open. | - |


## Accessibility

Adheres to the [Alert and Message Dialogs WAI-ARIA design pattern.](https://www.w3.org/TR/wai-aria-practices-1.2/#alertdialog)

### Keyboard Interactions

| Name | Description |
| ----------- | --------------------------------------------------------- |
| Space | Opens/closes the dialog. |
| Enter | Opens/closes the dialog. |
| Tab | Moves focus to the next focusable element. |
| Shift + Tab | Moves focus to the previous focusable element. |
| Esc | Closes the dialog and moves focus to AlertDialog.Trigger. |
| Name | Description |
| --------------------|-------------|
| Space | Opens/closes the dialog. |
| Enter | Opens/closes the dialog. |
| Tab | Moves focus to the next focusable element. |
| Shift + Tab | Moves focus to the previous focusable element. |
| Esc | Closes the dialog and moves focus to AlertDialog.Trigger. |


Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ AspectRatio, Center, Box, Stack, Heading } from "native-base";
function CardComponent(){
return(
<Box
bg="white"
shadow={2}
rounded="lg"
maxWidth="90%"
>
<Image source={{uri: "https://sample-example.nativebase.io/static/media/dawki-river.ebbf5434.png"}} alt="image base" width={"100%"} height={150} roundedTop="md" />
<Image source={{uri: "https://sample-example.nativebase.io/static/media/dawki-river.ebbf5434.png"}} alt="image base" resizeMode="cover" height={150} roundedTop="md" />
<Text bold position="absolute" color="white" top={0} m={[4, 4, 8]}>
NEWS
</Text>
Expand All @@ -35,7 +36,7 @@ function CardComponent(){
The Stunning Dawki River in Meghalaya is So Clear That Boats Appear
Floating in Air
</Heading>
<Text lineHeight={[5, 5, 7]} noOfLines={[4, 4, 2]}>
<Text lineHeight={[5, 5, 7]} noOfLines={[4, 4, 2]} color="gray.700">
With lush green meadows, rivers clear as crystal, pine-covered
hills, gorgeous waterfalls, lakes and majestic forests, the
mesmerizing. Meghalaya is truly a Nature lover’s paradise…
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ title: Changelog
- Add a prop to render FAB outside of portal #3829
- Fix input padding(top/bottom) not working on android #3825
- Fix custom fonts not working on android for some cases #3821
- Fixed bold and italics issue in typography
- Spinner visibility issue fixed

For more details. Visit [releases](https://github.com/GeekyAnts/NativeBase/releases/tag/v3.0.4).
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ import { ComponentTheme } from '../../src/components';
## Accessibility

- Use accessibilityLabel for labelling icon buttons to make sure it's announced by screen reader devices.
- IconButton has a `role` set to [button](https://www.w3.org/TR/wai-aria-practices-1.2/#button).
- IconButton has a `role` set to [button](https://www.w3.org/TR/wai-aria-practices-1.2/#button).
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Yey! you are all set, start editing src/pages/index.tsx now.

</TabItem>


<TabItem value="npx">

<h4>Choose your preferred setting and start your development swiftly 🚀</h4>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { TileLink } from '../../src/components';
### Create a new project

```bash
react-native init AwesomeNativeBase
npx react-native init AwesomeNativeBase
cd AwesomeNativeBase
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ Link implements **[Box](box.md)**, so all the Box Props can be passed to it.

## Accessibility

Adheres to the [Link WAI-ARIA design pattern.](https://www.w3.org/TR/wai-aria-practices-1.2/#link)
Adheres to the [Link WAI-ARIA design pattern.](https://www.w3.org/TR/wai-aria-practices-1.2/#link)
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Extends `MenuItem`.

<ComponentTheme name="menu" />


## Accessibility

Adheres to the [Menu WAI-ARIA design pattern.](https://www.w3.org/TR/wai-aria-practices-1.2/#menu)
Adheres to the [Menu WAI-ARIA design pattern.](https://www.w3.org/TR/wai-aria-practices-1.2/#menu)
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ Adheres to the [Dialog WAI-ARIA design pattern.](https://www.w3.org/TR/wai-aria-

### Keyboard Interactions

| Name | Description |
| ----------- | ------------------------------------------------------ |
| Space | Opens/closes the popover. |
| Enter | Opens/closes the popover. |
| Tab | Moves focus to the next focusable element. |
| Shift + Tab | Moves focus to the previous focusable element. |
| Esc | Closes the popover and moves focus to Popover.Trigger. |
| Name | Description |
| --------------------|-------------|
| Space | Opens/closes the popover. |
| Enter | Opens/closes the popover. |
| Tab | Moves focus to the next focusable element. |
| Shift + Tab | Moves focus to the previous focusable element. |
| Esc | Closes the popover and moves focus to Popover.Trigger. |
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,20 @@ import { Slider } from 'native-base';

<ComponentTheme name="Slider" />


## Accessibility

Adheres to the [Slider WAI-ARIA design pattern.](https://www.w3.org/TR/wai-aria-practices-1.2/#slidertwothumb)

### Keyboard Interactions

| Name | Description |
| ---------- | ----------------------------------------------------------------- |
| ArrowRight | Increments/decrements by the step value depending on orientation. |
| ArrowLeft | Increments/decrements by the step value depending on orientation. |
| ArrowUp | Increases the value by the step amount. |
| ArrowDown | Decreases the value by the step amount. |
| Name | Description |
| ------------------|-------------|
| ArrowRight | Increments/decrements by the step value depending on orientation.|
| ArrowLeft | Increments/decrements by the step value depending on orientation.
| ArrowUp | Increases the value by the step amount.
| ArrowDown | Decreases the value by the step amount.




Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@ You can pass custom backgroundColor using `bg` or `backgroundColor`, `borderColo
## Accessibility

Adheres to the [Tooltip WAI-ARIA design pattern.](https://www.w3.org/TR/wai-aria-1.1/#tooltip)

### Keyboard Interactions

| Name | Description |
| ----- | ------------------------------------------ |
| Space | If open, closes the tooltip without delay. |
| Enter | If open, closes the tooltip without delay. |
| Tab | Moves focus to the next focusable element. |
| Esc | If open, closes the tooltip without delay. |
| Name | Description |
| --------------------|-------------|
| Space | If open, closes the tooltip without delay. |
| Enter | If open, closes the tooltip without delay. |
| Tab | Moves focus to the next focusable element. |
| Esc | If open, closes the tooltip without delay. |
Loading