mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary:
I do TV developing using a RN, and found one missing prop in TS:
```tsx
<TouchableOpacity focusable={false} />
// ^^^ Error: Property focusable does not exist on type Readonly<TouchableOpacityProps>
```
Then I decides to compare Flow & TS types definitions and found more:
1. `tvParallaxProperties` - [was removed](https://github.com/search?q=repo%3Afacebook%2Freact-native%20tvParallaxProperties&type=code) and never used in the runtime (but [`rn-tvos`](https://github.com/react-native-tvos/react-native-tvos/blob/92f73d1d7966dd41e3d8d9101a4e298e9462887b/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js#L299) has own ver. of `TouchableOpacity` & handle its types)
2. `focusable` is missing
3. `rejectResponderTermination` is missing
## Changelog:
[GENERAL] [REMOVED] - [TS] Remove `tvParallaxProperties` prop from `TouchableOpacity` & add missing `focusable`, `rejectResponderTermination` props
Pull Request resolved: https://github.com/facebook/react-native/pull/43912
Test Plan: TypeScript tests were updated
Reviewed By: NickGerleman
Differential Revision: D55805520
Pulled By: javache
fbshipit-source-id: 5eb8c65857beb86361e74b9369a1739b1ae18190