[fix] ignore 'tvParallaxProperties' prop

Close #867
This commit is contained in:
Kyle Goggin
2018-03-16 13:38:16 -04:00
committed by Nicolas Gallagher
parent b239cfb04d
commit a7cda988ef
3 changed files with 7 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ class Text extends Component<*> {
selectionColor,
suppressHighlighting,
textBreakStrategy,
tvParallaxProperties,
/* eslint-enable */
...otherProps
} = this.props;

View File

@@ -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;

View File

@@ -49,6 +49,7 @@ class View extends Component<ViewProps> {
removeClippedSubviews,
renderToHardwareTextureAndroid,
shouldRasterizeIOS,
tvParallaxProperties,
/* eslint-enable */
...otherProps
} = this.props;