Skip to content

Commit 8cb5f70

Browse files
Update README.md
use correct object return for accessibility hooks
1 parent 388506b commit 8cb5f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ yarn add @react-native-community/hooks
3636
```js
3737
import { useAccessibilityInfo } from '@react-native-community/hooks'
3838

39-
const isScreenReaderEnabled = useAccessibilityInfo()
39+
const { reduceMotionEnabled, screenReaderEnabled } = useAccessibilityInfo()
4040
```
4141

4242
### `useAppState`

0 commit comments

Comments
 (0)