mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
755a7dbf56
Summary: I wanted to add a new iOS prop, but noticed this, got distracted, fixed it up, and here we are 😅 There are a few Android/iOS specific props that have been added to `ViewProps` instead of `ViewPropsAndroid` or `ViewPropsIOS`. Let's just move around some props to clean that up, in both Flow and TypeScript.Specifically: - Moved `needsOffscreenAlphaCompositing` to shared as it's implemented on both iOS and Android - Moved `accessibilityLiveRegion` / `aria-live` / `accesbilityLabelledBy` / `aria-labelledBy` to Android - While at it, I also updated the comment definition so that `accessibilityLabelledBy` and `aria-labelledBy` because it just maps to the same thing in native code. - Moved `accessibilityLanguage` to iOS only ## Changelog: [GENERAL] [FIXED] - Move iOS/Android specific prop types appropriate types Pull Request resolved: https://github.com/facebook/react-native/pull/40978 Test Plan: CI should pass Reviewed By: NickGerleman Differential Revision: D50372564 Pulled By: vincentriemer fbshipit-source-id: ba947c15ffdd4d84d3424b4274afdcbf130adad4