Integrated iOS-only accessibilityLanguage prop#33090
Conversation
Base commit: 46bc521 |
Base commit: 46bc521 |
Co-authored-by: Rob Hogan <rh389@users.noreply.github.com>
Thank you @rh389! A PR for the docs will follow soon 🙂 |
PrayaAmadigaPitasa
left a comment
There was a problem hiding this comment.
need documentation for new props
|
@PrayaAmadigaPitasa I've been a bit busy, in the next days I'll open the PR 🙂 By the way, I just noticed that the latest tests didn't pass on the CI but I cannot reproduce anything locally, and I don't think I'm seeing useful informations about the error, do you know what's the matter? |
|
I opened facebook/react-native-website#2970 to address the documentation! |
|
@rh389 @PrayaAmadigaPitasa Hello, sorry in advance for the notification, I just wanted to know if something else needs to be done on my part, if so let me know 🙂 |
|
@rh389 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
Thanks @dgopsq, sorry for the delay. This looks good to me - imported for final review |
|
@rh389 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
This pull request was successfully merged by @dgopsq in 7b05b09. When will my fix make it into a release? | Upcoming Releases |
|
Hi everyone! Currently tried on 3 different "machines", 3 different projects, even a new one out of the box, and nothing. |
I have the same problem, is it something to do with react native version? |
|
@dgopsq how do you get the Advanced panel in accessibility inspector ? |
As i can see, this is available from version 69 onwards. I am still on 68 |
@gaurav5430 I didn't do anything special, I just had it from the start. As far as I can see it's not even possible to hide it so you should have it too! 🤔
@dvijeniii05 You're using TypeScript right? I just noticed that |
Summary: This PR fixes facebook#30891 This PR is going to add an `accessibilityLanguage` prop to all the available components. This props is currently working only on iOS and should follow the [guidelines of the relative configuration](https://developer.apple.com/documentation/objectivec/nsobject/1615192-accessibilitylanguage). I'm in no way an expert on native programming (especially Objective-C) so I'm open to changes / improvements 🙂 <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [iOS] [Added] - Integrated the `accessibilityLanguage` prop to all the available components. The prop is available for any platform but it will work only on iOS. Pull Request resolved: facebook#33090 Test Plan: This has been tested using both the Simulator, checking for the `Language` attribute, and using a physical device with the Voice Over enabled. <img width="1083" alt="Screenshot 2022-02-11 at 13 17 32" src="https://user-images.githubusercontent.com/5963683/153590415-65fcb4ff-8f31-4a0f-90e5-8eb1aae6aa3d.png"> Reviewed By: philIip Differential Revision: D34523608 Pulled By: rh389 fbshipit-source-id: b5d77fc0b3d76ea8ed8f30c8385459ba98122ff6
Summary
This PR fixes #30891
This PR is going to add an
accessibilityLanguageprop to all the available components. This props is currently working only on iOS and should follow the guidelines of the relative configuration.I'm in no way an expert on native programming (especially Objective-C) so I'm open to changes / improvements 🙂
Changelog
[iOS] [Added] - Integrated the
accessibilityLanguageprop to all the available components. The prop is available for any platform but it will work only on iOS.Test Plan
This has been tested using both the Simulator, checking for the
Languageattribute, and using a physical device with the Voice Over enabled.