Skip to content

Commit

Permalink
RN: Remove AccessibilityInfo.fetch
Browse files Browse the repository at this point in the history
Summary:
Removes `AccessibilityInfo.fetch` which had already been deprecated for a while by 0090ab3.

Changelog:
[General][Removed] - Removed `AccessibilityInfo.fetch`, use `isScreenReaderEnabled` instead.

Reviewed By: kacieb

Differential Revision: D27576528

fbshipit-source-id: f5df3445b4cc3bcb4ce6873c6845748109bc393d
  • Loading branch information
yungsters authored and facebook-github-bot committed Apr 6, 2021
1 parent 003d63d commit d831134
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,6 @@ const AccessibilityInfo = {
});
},

/**
* Deprecated
*
* Same as `isScreenReaderEnabled`
*/
// $FlowFixMe[unsafe-getters-setters]
get fetch(): () => Promise<boolean> {
console.warn(
'AccessibilityInfo.fetch is deprecated, call AccessibilityInfo.isScreenReaderEnabled instead',
);
return this.isScreenReaderEnabled;
},

addEventListener: function<K: $Keys<AccessibilityEventDefinitions>>(
eventName: K,
handler: (...$ElementType<AccessibilityEventDefinitions, K>) => void,
Expand Down
13 changes: 0 additions & 13 deletions Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,19 +168,6 @@ const AccessibilityInfo = {
});
},

/**
* Deprecated
*
* Same as `isScreenReaderEnabled`
*/
// $FlowFixMe[unsafe-getters-setters]
get fetch(): $FlowFixMe {
console.warn(
'AccessibilityInfo.fetch is deprecated, call AccessibilityInfo.isScreenReaderEnabled instead',
);
return this.isScreenReaderEnabled;
},

/**
* Add an event handler. Supported events:
*
Expand Down

0 comments on commit d831134

Please sign in to comment.