mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b61583a780
Summary: This PR fixes broken focus on tvOS due to `isTVSelectable` and `tvParallaxProperties` not being available in validAttributes definition object of ReactNativeViewViewConfig ## Changelog [ios] [Fixed] - elements no longer focusable on tvOS Pull Request resolved: https://github.com/facebook/react-native/pull/26775 Test Plan: ``` import React from 'react'; import { StyleSheet, View, Text, TouchableOpacity } from 'react-native'; const parallax = { enabled: true, shiftDistanceY: 2, shiftDistanceX: 2, tiltAngle: 0.05, pressMagnification: 1, magnification: 1.1, }; const Button: () => React$Node = () => ( <TouchableOpacity style={styles.buttonx} tvParallaxProperties={parallax}> <Text> Touchable Button </Text> </TouchableOpacity> ); const App: () => React$Node = () => ( <View style={styles.wrapper}> <Button /> <Button /> <Button /> <Button /> <Button /> <Button /> <Button /> </View> ); const styles = StyleSheet.create({ buttonx: { backgroundColor: 'red', height: 100, width: 500 }, wrapper: { justifyContent: 'center', flex: 1, alignItems: 'center' } }); export default App; ```  Differential Revision: D17845058 Pulled By: TheSavior fbshipit-source-id: b6c71d370efd6cf7763ab3a98bbfe1630f789821