File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ const TVViewPropTypes = {
71
71
tvParallaxMagnification : PropTypes . number ,
72
72
} ;
73
73
74
- export type TVViewProps = {
74
+ export type TVViewProps = $ReadOnly < { |
75
75
isTVSelectable ? : boolean ,
76
76
hasTVPreferredFocus ? : boolean ,
77
77
tvParallaxProperties ? : Object ,
78
78
tvParallaxShiftDistanceX ? : number ,
79
79
tvParallaxShiftDistanceY ? : number ,
80
80
tvParallaxTiltAngle ? : number ,
81
81
tvParallaxMagnification ? : number ,
82
- } ;
82
+ | } > ;
83
83
84
84
module . exports = TVViewPropTypes ;
Original file line number Diff line number Diff line change @@ -35,9 +35,11 @@ const stylePropType = StyleSheetPropType(ViewStylePropTypes);
35
35
export type ViewLayout = Layout ;
36
36
export type ViewLayoutEvent = LayoutEvent ;
37
37
38
- // There's no easy way to create a different type if (Platform.isTVOS):
39
- // so we must include TVViewProps
40
38
export 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
+
41
43
accessible ?: boolean ,
42
44
accessibilityLabel ?:
43
45
| null
@@ -77,7 +79,7 @@ export type ViewProps = {
77
79
shouldRasterizeIOS ?: boolean ,
78
80
collapsable ?: boolean ,
79
81
needsOffscreenAlphaCompositing ?: boolean ,
80
- } & TVViewProps ;
82
+ } ;
81
83
82
84
module . exports = {
83
85
/**
You can’t perform that action at this time.
0 commit comments