Skip to content

Commit

Permalink
Fix deprecated code RN 0.62.0 (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiggag committed Apr 5, 2020
1 parent dfcff2c commit b641923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function handleScreenReaderChanged(isScreenReaderEnabled: AccessibilityEvent) {

AccessibilityInfo.addEventListener('screenReaderChanged', handleScreenReaderChanged);
function setAccessibility() {
AccessibilityInfo.fetch().then(isScreenReaderEnabled => {
AccessibilityInfo.isScreenReaderEnabled().then(isScreenReaderEnabled => {
accessibility.isScreenReaderEnabled = isScreenReaderEnabled;
});
}
Expand Down

0 comments on commit b641923

Please sign in to comment.