Skip to content

Adding Accessibility Display Options Enabled to RNTester#29231

Closed
graytmatterMS wants to merge 4 commits into
facebook:mainfrom
graytmatterMS:matgray@ms/add-a11y-property-checkers-to-RNTester
Closed

Adding Accessibility Display Options Enabled to RNTester#29231
graytmatterMS wants to merge 4 commits into
facebook:mainfrom
graytmatterMS:matgray@ms/add-a11y-property-checkers-to-RNTester

Conversation

@graytmatterMS
Copy link
Copy Markdown
Contributor

@graytmatterMS graytmatterMS commented Jun 27, 2020

Summary

Currently there isn't any way to test if the Accessibility Display Options or the event listeners for them were working properly within RNTester. It turns out that because of changes to the accessibility API Apple made when they added Smart Invert AccessibilityInfo.isInvertColorsEnabled() and the associated event listener are working incorrectly. You can see this if you take a look at how RNTester (with this PR incorporated) responds to toggling Invert Colors. I've submitted a bug report to Apple, but this might have been caught earlier if this had been implemented.

Changelog

[General] [Added] - Adding Accessibility Display Options Enabled to RNTester

Test Plan

  1. Build iOS app
  2. Navigate to the Accessibility page
  3. Switch over to settings and change any of the settings at
  • Settings>Accessibility>Display and Text Size>Bold Text
  • Settings>Accessibility>Display and Text Size>Color Filters>Grayscale
  • Settings>Accessibility>Display and Text Size>Smart Invert (or Classic Invert)
  • Settings>Accessibility>Motion>Reduce Motion
  • Settings>Accessibility>VoiceOver>VoiceOver
  1. Switch back to the app and see the results

Simulator Screen Shot - iPhone 11 - 2020-06-26 at 21 13 16
Simulator Screen Shot - iPhone 11 - 2020-06-26 at 21 13 39

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Microsoft Partner: Microsoft Partner labels Jun 27, 2020
@react-native-bot react-native-bot added the Type: Enhancement A new feature or enhancement of an existing feature. label Jun 27, 2020
@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Jun 27, 2020

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 6,765,931 4,002
android hermes armeabi-v7a 6,429,158 3,988
android hermes x86 7,153,088 3,992
android hermes x86_64 7,043,041 3,978
android jsc arm64-v8a 8,938,729 3,834
android jsc armeabi-v7a 8,594,341 3,855
android jsc x86 8,768,990 3,823
android jsc x86_64 9,344,600 3,854

Base commit: a50f736

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Jun 27, 2020

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: a50f736

@lunaleaps lunaleaps self-requested a review July 2, 2021 00:20
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@lunaleaps has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

// Fabric Detection
// eslint-disable-next-line dot-notation
const isFabric = !!(
this._ref && this._ref['_internalInstanceHandle']?.stateNode?.canonical
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll have to revert this. As I've learned from @TheSavior our babel transform has issues with _ prefixed properties

Copy link
Copy Markdown
Contributor

@lunaleaps lunaleaps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@graytmatterMS I'm having trouble landing this due to the merge conflicts -- could you fix and push and I can try to land again?

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@lunaleaps merged this pull request in 2abacac.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Microsoft Partner: Microsoft Partner Type: Enhancement A new feature or enhancement of an existing feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants