File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ const TVViewPropTypes = {
7171 tvParallaxMagnification : PropTypes . number ,
7272} ;
7373
74- export type TVViewProps = {
74+ export type TVViewProps = $ReadOnly < { |
7575 isTVSelectable ? : boolean ,
7676 hasTVPreferredFocus ? : boolean ,
7777 tvParallaxProperties ? : Object ,
7878 tvParallaxShiftDistanceX ? : number ,
7979 tvParallaxShiftDistanceY ? : number ,
8080 tvParallaxTiltAngle ? : number ,
8181 tvParallaxMagnification ? : number ,
82- } ;
82+ | } > ;
8383
8484module . exports = TVViewPropTypes ;
Original file line number Diff line number Diff line change @@ -35,9 +35,11 @@ const stylePropType = StyleSheetPropType(ViewStylePropTypes);
3535export type ViewLayout = Layout ;
3636export type ViewLayoutEvent = LayoutEvent ;
3737
38- // There's no easy way to create a different type if (Platform.isTVOS):
39- // so we must include TVViewProps
4038export type ViewProps = {
39+ // There's no easy way to create a different type if (Platform.isTVOS):
40+ // so we must include TVViewProps
41+ ...TVViewProps ,
42+
4143 accessible ?: boolean ,
4244 accessibilityLabel ?:
4345 | null
@@ -77,7 +79,7 @@ export type ViewProps = {
7779 shouldRasterizeIOS ?: boolean ,
7880 collapsable ?: boolean ,
7981 needsOffscreenAlphaCompositing ?: boolean ,
80- } & TVViewProps ;
82+ } ;
8183
8284module . exports = {
8385 /**
You can’t perform that action at this time.
0 commit comments