import React, { Component } from 'react';-import { View, ViewPropTypes, Image, Animated, Easing, ActivityIndicator, findNodeHandle } from 'react-native';+import { View, Image, Animated, Easing, ActivityIndicator, findNodeHandle } from 'react-native';+import {ViewPropTypes} from 'deprecated-reac...
ERROR ViewPropTypes will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript. If you need to continue using ViewPropTypes, migrate to thedeprecated-react-native-prop-typespackage. This package...
UseView.propTypes.styleinstead ofPropTypes.numberin styles validation (thanks@pesakitan22) v1.5.0 Items length can now be changed on-the-fly (thanks@superical) Now handling momentum (thanks@FakeYou) v1.4.0 Better update strategy with shallowCompare ...
通过yarnaddreact-native-snap-carousel安装后,先执行pod install安装 iOS 依赖,然后通过yarn start和yarn run ios运行项目,最后在控制台中会输出以下错误信息: ERRORInvariantViolation:ViewPropTypeshas been removedfromReactNative.MigratetoViewPropTypesexportedfrom'deprecated-react-native-prop-types'. ERRORInvariantViol...
export default class SliderEntry extends Component { static propTypes = { data: PropTypes.object.isRequired, }; render () { const { data: { title, subtitle, illustration}, navigation } = this.props; //<--- return ( <TouchableOpacity activeOpacity={1} style={styles.slideInnerContainer} onP...
the error ERROR TypeError: Cannot read property 'style' of undefined, js engine: hermes i know someone already post this, but for me i have to remove View.propTypes.style too slideStyle: ViewPropTypes ? ViewPropTypes.style : View.propTyp...