ViewPropTypes error
bj97301 opened this issue · 0 comments
bj97301 commented
I get this error after adding and using your package:
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 the 'deprecated-react-native-prop-types' package.
I believe it is because your importing the the ViewPropTypes thingy from react-native:
import {
Animated,
Image,
StyleSheet,
PanResponder,
View,
Easing,
ViewPropTypes
} from "react-native";
import PropTypes from 'prop-types';
var TRACK_SIZE = 4;
var THUMB_SIZE = 20;
Any thoughts?