File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,14 @@ yarn add @react-native-community/hooks
37
37
``` js
38
38
import { useAccessibilityInfo } from ' @react-native-community/hooks'
39
39
40
- const { reduceMotionEnabled , screenReaderEnabled } = useAccessibilityInfo ()
40
+ const {
41
+ reduceMotionEnabled ,
42
+ screenReaderEnabled ,
43
+ grayscaleEnabled ,
44
+ invertColorsEnabled ,
45
+ reduceTransparencyEnabled ,
46
+ boldTextEnabled
47
+ } = useAccessibilityInfo ()
41
48
```
42
49
43
50
### ` useAppState `
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export function useAccessibilityInfo() {
64
64
const screenReaderEnabled = useAccessibilityStateListener (
65
65
'screenReaderChanged' ,
66
66
)
67
- const greyScaleEnabled = useAccessibilityStateListener ( 'grayscaleChanged' )
67
+ const grayscaleEnabled = useAccessibilityStateListener ( 'grayscaleChanged' )
68
68
const boldTextEnabled = useAccessibilityStateListener ( 'boldTextChanged' )
69
69
const invertColorsEnabled = useAccessibilityStateListener (
70
70
'invertColorsChanged' ,
@@ -78,7 +78,7 @@ export function useAccessibilityInfo() {
78
78
79
79
return {
80
80
screenReaderEnabled,
81
- greyScaleEnabled ,
81
+ grayscaleEnabled ,
82
82
invertColorsEnabled,
83
83
reduceMotionEnabled,
84
84
reduceTransparencyEnabled,
You can’t perform that action at this time.
0 commit comments