Skip to content

Commit b275850

Browse files
authored
Merge pull request #257 from GeekyAnts/fix/content-r2
updated content of hooks
2 parents 2330d37 + 1f62fa7 commit b275850

20 files changed

+46
-42
lines changed

docs/3.3.x/use-accessible-colors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ id: use-accessible-colors
33
title: useAccessibleColors
44
---
55

6-
`useAccessibleColors` is a custom hook used to get the setting for using color with better [color and contrast accessibility](https://web.dev/color-and-contrast-accessibility/) in the app. By default, accessible colors are turned off to get better color matching the theme of the app. You can use this hook if you always want to use accessible text colors. You can also pass it in the config for [`NativeBaseProvider`](setup-provider.md) with [`extendTheme`](/setup-provider#add-custom-theme-optional).
6+
`useAccessibleColors` is a custom hook that enhance color settings for better [color and contrast accessibility](https://web.dev/color-and-contrast-accessibility/) in the app. By default, accessible colors are off. This allows better color matching to the theme of the app. You can also use this hook if you want to continue using accessible text colors. You can also pass it in the config for [`NativeBaseProvider`](setup-provider.md) with [`extendTheme`](/setup-provider#add-custom-theme-optional).
77

88
## Import
99

1010
```jsx
11-
import { useAccessibleColors } from 'native-base';
11+
import { useAccessibleColors } from "native-base";
1212
```
1313

1414
## Example

docs/3.3.x/use-breakpoint-value.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ id: use-breakPoint-value
33
title: useBreakpointValue
44
---
55

6-
`useBreakpointValue` is a custom hook which returns the value for the current breakpoint from the provided responsive values object. This hook also responds to the window resizing and returning the appropriate value for the new window size.
6+
`useBreakpointValue` returns the value for the current breakpoint based on the provided responsive values object. It is also responsive to window resizing and returning the appropriate value according to the new window size.
77

88
## Import
99

1010
```jsx
11-
import { useBreakpointValue } from 'native-base';
11+
import { useBreakpointValue } from "native-base";
1212
```
1313

1414
## Return value

docs/3.3.x/use-clipboard.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: use-clipboard
33
title: useClipboard
44
---
55

6-
`useClipboard` is a custom hook that handles copying content to clipboard.
6+
`useClipboard` controls and regulates the copying of content to the clipboard.
77

88
## Return Value
99

@@ -16,7 +16,7 @@ The `useClipboard` hook returns an object with the following fields:
1616
## Import
1717

1818
```jsx
19-
import { useClipboard } from 'native-base';
19+
import { useClipboard } from "native-base";
2020
```
2121

2222
## Usage

docs/3.3.x/use-color-mode-value.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ id: use-color-mode-value
33
title: useColorModeValue
44
---
55

6-
`useColorModeValue` is a custom hook used to get a value from either of the parameters passed based on active color mode value.
6+
`useColorModeValue` is a custom hook that can retrieve a value from parameters passed based on active color mode value.
77

88
## Import
99

1010
```jsx
11-
import { useColorModeValue } from 'native-base';
11+
import { useColorModeValue } from "native-base";
1212
```
1313

1414
## Example

docs/3.3.x/use-color-mode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ id: use-color-mode
33
title: useColorMode
44
---
55

6-
`useColorMode` is a custom hook used to get and set the color mode.
6+
`useColorMode` is a custom hook that can set the color mode or retrieve it.
77

88
## Import
99

1010
```jsx
11-
import { useColorMode } from 'native-base';
11+
import { useColorMode } from "native-base";
1212
```
1313

1414
## Example

docs/3.3.x/use-contrast-text.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ id: use-contrast-text
33
title: useContrastText
44
---
55

6-
`useContrastText` is a custom hook used to get a contrasting color (either `lightText` or `darkText`) to the color passed as a parameter.
6+
`useContrastText` is a custom hook that provides color contrast (either `lightText` or `darkText`) to the color being used as a parameter.
77

88
## Import
99

1010
```jsx
11-
import { useContrastText } from 'native-base';
11+
import { useContrastText } from "native-base";
1212
```
1313

1414
## Examples

docs/3.3.x/use-disclose.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ id: use-disclosure
33
title: useDisclose
44
---
55

6-
`useDisclose` is a custom hook used to help handle common `open`, `close`, or `toggle` scenarios. It can be used to control feedback component such as **Modal**, **AlertDialog**, **Drawer**, etc.
6+
`useDisclose` handles common open, close, or toggle scenarios and can control feedback component such as **Modal**, **AlertDialog**, **Drawer**, etc.
77

88
## Import
99

1010
```jsx
11-
import { useDisclose } from 'native-base';
11+
import { useDisclose } from "native-base";
1212
```
1313

1414
## Example

docs/3.3.x/use-media-query.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ id: use-media-query
33
title: useMediaQuery
44
---
55

6-
`useMediaQuery` is a custom hook used to help detect whether a single media query or multiple media queries individually match. React Native does not natively support media queries, so `useMediaQuery` is still limited.
6+
`useMediaQuery` is a custom hook that helps detect matches between between a single media query or multiple media queries. React Native does not natively support media queries, so `useMediaQuery` is still limited.
77

88
## Import
99

1010
```jsx
11-
import { useMediaQuery } from 'native-base';
11+
import { useMediaQuery } from "native-base";
1212
```
1313

1414
## Example

docs/3.3.x/use-theme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: use-theme
33
title: useTheme
44
---
55

6-
`useTheme` is a custom hook used to get the theme object from context.
6+
`useTheme` is a custom hook to call theme object from the context.
77

88
## Import
99

docs/3.3.x/use-token.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: use-token
33
title: useToken
44
---
55

6-
`useToken` is a custom hook used to resolve design tokens from the theme.
6+
`useToken` resolves design tokens from the theme.
77

88
## Import
99

@@ -48,8 +48,10 @@ function UseTokenHookExample() {
4848
);
4949
}
5050
export function Example() {
51-
return (<Center flex={1}>
52-
<UseTokenHookExample />
53-
</Center>);
51+
return (
52+
<Center flex={1}>
53+
<UseTokenHookExample />
54+
</Center>
55+
);
5456
}
5557
```

0 commit comments

Comments
 (0)