Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AccessibilityInfo with new methods and events #835

Merged

Conversation

estevaolucas
Copy link

Update AccessibilityInfo doc to follow the new methods and events (please refer to facebook/react-native#23839, facebook/react-native#23913)

It adds these new methods:

  • isBoldTextEnabled()
  • isGrayscaleEnabled()
  • isInvertColorsEnabled()
  • isReduceMotionEnabled()
  • isReduceTransparencyEnabled()

And the corresponding event listeners:

  • boldTextChanged
  • grayscaleChanged,
  • invertColorsChanged,
  • reduceMotionChanged
  • reduceTransparencyChanged

@estevaolucas estevaolucas changed the title update AccessibilityInfo with new methods and events Update AccessibilityInfo with new methods and events Mar 14, 2019
@react-native-bot
Copy link

Deploy preview for react-native ready!

Built with commit c758612

https://deploy-preview-835--react-native.netlify.com

Changes to docs/ are reflected in the next "master" version.

Thank you for your contributions.

How to ContributeDocumentation Sources

@charpeni charpeni merged commit 121b88b into facebook:master Mar 20, 2019
@estevaolucas estevaolucas deleted the chore/update-accessibilityinfo branch March 20, 2019 14:02
aajahid added a commit to aajahid/reactxp that referenced this pull request Jul 18, 2022
…-native 0.60 API

React-Native 0.59 -> 0.60 changed a lot of the AccessibilityInfo API, and this does a straight forward-port of existing functionality (screen reader status detection) to the new API.

Here is the related PR facebook/react-native-website#835

And the doc with new APIs https://facebook.github.io/react-native/docs/accessibilityinfo

This depends on the PR here for types I believe DefinitelyTyped/DefinitelyTyped#37486

There is an opportunity to also expand API coverage to cover the other new accessibility features react-native exposes but if this is desired it might be best to do it separately? Additionally the majority are iOS-specific so if I proposed that change I'd need some guidance.

Fixes microsoft#1319
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants