File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ type AccessibilityInfoStaticInitializers =
12
12
function useAccessibilityStateListener (
13
13
eventName : AccessibilityChangeEventName ,
14
14
initializerName : AccessibilityInfoStaticInitializers ,
15
- ) : boolean | undefined {
15
+ ) {
16
16
const [ isEnabled , setIsEnabled ] = useState < boolean | undefined > ( undefined )
17
17
18
18
useEffect ( ( ) => {
@@ -29,14 +29,7 @@ function useAccessibilityStateListener(
29
29
return isEnabled
30
30
}
31
31
32
- export function useAccessibilityInfo ( ) : {
33
- screenReaderEnabled : boolean | undefined
34
- boldTextEnabled : boolean | undefined
35
- grayscaleEnabled : boolean | undefined
36
- invertColorsEnabled : boolean | undefined
37
- reduceMotionEnabled : boolean | undefined
38
- reduceTransparencyEnabled : boolean | undefined
39
- } {
32
+ export function useAccessibilityInfo ( ) {
40
33
const boldTextEnabled = useAccessibilityStateListener (
41
34
'boldTextChanged' ,
42
35
'isBoldTextEnabled' ,
You can’t perform that action at this time.
0 commit comments