Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

react-native types file appears to not have the new AccessibilityInfo types?

$
0
0

I am using react-native 0.63 and I am using AccessibilityInfo.fetch() which is now deprecated. I am trying to update to AccessibilityInfo.isScreenReaderEnabled() however i am getting an issue with my typescriping that Property 'isScreenReaderEnabled' does not exist on type 'AccessibilityInfoStatic'. I went to the node_modules/@types/react-native/index.d.ts and indeed under AccessibilityInfoStatic there is no value isScreenReaderEnabled.

Has anyone solved this problem?

Thanks for your help.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>