react-native
react-native copied to clipboard
feat: Add tabIndex prop to View component
Summary
This adds the tabIndex
Android only prop to View as requested on https://github.com/facebook/react-native/issues/34424 mapping the existing focusable
prop to tabIndex
so that tabIndex={0}
maps to focusable={true}
and tabIndex={-1}
represents focusable={false}
.
Changelog
[Android] [Added] - Add tabIndex prop to View component
Test Plan
I'm still investigating the best way to test this but we're are just mapping this to an existing prop
Platform | Engine | Arch | Size (bytes) | Diff |
---|---|---|---|---|
android | hermes | arm64-v8a | 7,617,967 | +95 |
android | hermes | armeabi-v7a | 7,032,206 | +87 |
android | hermes | x86 | 7,918,045 | +114 |
android | hermes | x86_64 | 7,891,666 | +118 |
android | jsc | arm64-v8a | 9,495,266 | -17 |
android | jsc | armeabi-v7a | 8,272,879 | -35 |
android | jsc | x86 | 9,433,068 | -6 |
android | jsc | x86_64 | 10,026,062 | -2 |
Base commit: ed21a3e20fcbba131792f469fe004f8cf97a4018 Branch: main
@necolas has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@necolas I've just rebased it now that CI has been fixed
Platform | Engine | Arch | Size (bytes) | Diff |
---|---|---|---|---|
ios | - | universal | n/a | -- |
Base commit: ed21a3e20fcbba131792f469fe004f8cf97a4018 Branch: main
@necolas has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@necolas 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 @gabrieldonadel in 621f4cf3b12979b62d2e1d49d63eaf85e0707026.
When will my fix make it into a release? | Upcoming Releases