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 =
1212function useAccessibilityStateListener (
1313 eventName : AccessibilityChangeEventName ,
1414 initializerName : AccessibilityInfoStaticInitializers ,
15- ) : boolean | undefined {
15+ ) {
1616 const [ isEnabled , setIsEnabled ] = useState < boolean | undefined > ( undefined )
1717
1818 useEffect ( ( ) => {
@@ -29,14 +29,7 @@ function useAccessibilityStateListener(
2929 return isEnabled
3030}
3131
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 ( ) {
4033 const boldTextEnabled = useAccessibilityStateListener (
4134 'boldTextChanged' ,
4235 'isBoldTextEnabled' ,
You can’t perform that action at this time.
0 commit comments