mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-12 22:51:09 +08:00
committed by
Nicolas Gallagher
parent
b239cfb04d
commit
a7cda988ef
@@ -53,6 +53,7 @@ class Text extends Component<*> {
|
||||
selectionColor,
|
||||
suppressHighlighting,
|
||||
textBreakStrategy,
|
||||
tvParallaxProperties,
|
||||
/* eslint-enable */
|
||||
...otherProps
|
||||
} = this.props;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
import EdgeInsetsPropType, { type EdgeInsetsProp } from '../EdgeInsetsPropType';
|
||||
import StyleSheetPropType from '../../modules/StyleSheetPropType';
|
||||
import ViewStylePropTypes from './ViewStylePropTypes';
|
||||
import { any, array, bool, func, oneOf, oneOfType, string } from 'prop-types';
|
||||
import { any, array, bool, func, object, oneOf, oneOfType, string } from 'prop-types';
|
||||
|
||||
const stylePropType = StyleSheetPropType(ViewStylePropTypes);
|
||||
|
||||
@@ -74,7 +74,8 @@ export type ViewProps = {
|
||||
onMagicTap?: Function,
|
||||
removeClippedSubviews?: boolean,
|
||||
renderToHardwareTextureAndroid?: boolean,
|
||||
shouldRasterizeIOS?: boolean
|
||||
shouldRasterizeIOS?: boolean,
|
||||
tvParallaxProperties?: {}
|
||||
};
|
||||
|
||||
const ViewPropTypes = {
|
||||
@@ -122,7 +123,8 @@ const ViewPropTypes = {
|
||||
onMagicTap: func,
|
||||
removeClippedSubviews: bool,
|
||||
renderToHardwareTextureAndroid: bool,
|
||||
shouldRasterizeIOS: bool
|
||||
shouldRasterizeIOS: bool,
|
||||
tvParallaxProperties: object
|
||||
};
|
||||
|
||||
export default ViewPropTypes;
|
||||
|
||||
@@ -49,6 +49,7 @@ class View extends Component<ViewProps> {
|
||||
removeClippedSubviews,
|
||||
renderToHardwareTextureAndroid,
|
||||
shouldRasterizeIOS,
|
||||
tvParallaxProperties,
|
||||
/* eslint-enable */
|
||||
...otherProps
|
||||
} = this.props;
|
||||
|
||||
Reference in New Issue
Block a user