-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
fix: fixed types props tabIndex in view #41312
Conversation
Hi @wootsbot! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
userSelect is a Text style prop and is incorrectly listed under Text Props.I have opened a PR (facebook/react-native-website#3913) to the website to fix this |
packages/react-native/Libraries/Components/View/ViewPropTypes.d.ts
Outdated
Show resolved
Hide resolved
@lunaleaps has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Not seeing |
e3a7395
to
6c77497
Compare
I have changed the description and the commit message In favor of what @tarunrajput mentions here. #41312 (comment). |
@lunaleaps merged this pull request in b36505b. |
…ook#41312) Summary: zfrankdesign reported that in RN 0.72.6, they receive warnings that some new props listed in the documents are missing: View tabIndex https://reactnative.dev/docs/view#tabindex-android and Text userSelect https://reactnative.dev/docs/text#userselect. It seems the components accept these props but they were not typed. ## Changelog: [GENERAL] [FIXED] - Missing typings for the props `tabIndex` for **View** and `userSelect` in the **Text** props were added. Pull Request resolved: facebook#41312 Test Plan: 1. Instantiate a component of type View 1.1. Should add the property tabIndex to the View component. 1.2. Should not see a warning about the missing tabIndex property. 2. Instantiate a component of type Text 2.1. Should add the property userSelect to the Text component. 2.2. Should not see a warning about the missing userSelect property. Reviewed By: NickGerleman Differential Revision: D50982156 Pulled By: lunaleaps fbshipit-source-id: 75b55cfb897738be0cf426912a7c10c7412d5032
Summary:
@zfrankdesign reported that in RN 0.72.6, they receive warnings that some new props listed in the documents are missing:
View tabIndex https://reactnative.dev/docs/view#tabindex-android. It seems the components accept these props but they were not typed.
Changelog:
[GENERAL] [FIXED] - Missing typings for the props
tabIndex
for ViewTest Plan:
1.1. Should add the property tabIndex to the View component.
1.2. Should not see a warning about the missing tabIndex property.