Skip to content

Refactor AccessibilityInfo Example into React Hooks#1629

Merged
nearestnabors merged 4 commits intofacebook:masterfrom
mdabrowka:accessibility-info-into-react-hooks
Feb 22, 2020
Merged

Refactor AccessibilityInfo Example into React Hooks#1629
nearestnabors merged 4 commits intofacebook:masterfrom
mdabrowka:accessibility-info-into-react-hooks

Conversation

@mdabrowka
Copy link
Copy Markdown
Contributor

Issue: #1579

  • Updates jsx example with React Hooks
  • Adds Snack example with React Hooks

Please note: I’ve tested with SnackPlayer and the version of React Native it uses underneath does not include the methods isReduceMotionEnabled and isScreenReaderEnabled from the AccessibilityInfo API. For that reason, I used fetch in the Snack example.

@react-native-bot
Copy link
Copy Markdown

react-native-bot commented Feb 14, 2020

Deploy preview for react-native ready!

Built with commit e75d16a

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

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

Thank you for your contributions.

How to ContributeDocumentation Sources

@mdabrowka
Copy link
Copy Markdown
Contributor Author

Apologies for the messed up deploy-preview -I have now fixed the code- could the preview perhaps be re-run?

Copy link
Copy Markdown
Contributor

@nearestnabors nearestnabors left a comment

Choose a reason for hiding this comment

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

Hello, my friend!

I have had a look at your changes here: https://deploy-preview-1629--react-native.netlify.com/docs/accessibilityinfo

We are alllllmost there! A few things:

  1. Can you use the <div class="toggler"> template from the original issue to include both the old class example and your new one? #1579
  2. I see a JSX block and a Snack block here... I suspect you only intended to have Snack Players! Please take a look :)

Thank you so much for taking this on!

Copy link
Copy Markdown
Contributor

@nearestnabors nearestnabors left a comment

Choose a reason for hiding this comment

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

Thank you so much for submitting this! And congratulations on your first React Native merge! We hope you will come back with more!!

rowlet-spin-happy

@nearestnabors nearestnabors merged commit fac2ae3 into facebook:master Feb 22, 2020
kaioduarte pushed a commit to kaioduarte/react-native-website that referenced this pull request Feb 24, 2020
* Rewrite jsx example using React Hooks

* Add a SnackPlayer example

* Remove redundant character

* Embed functional and class component in toggler syntax
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