Failed prop type: checker is not a function + 2 other warnings
Closed this issue · 1 comments
3 warnings are thrown using version 1.0.5
Warning 1
Console shows the warning:
Failed prop type: checker is not a function
caused by
buttonState: PropTypes.oneOfType( [ 'normal', 'success', 'error' ] ),
(source)
change oneOfType
to oneOf
to solve.
Warning 2
Warning: Failed prop type: SubmitButton: prop type
errorColor
is invalid; it must be a function, usually from React.PropTypes.
by errorColor : PropTypes.color,
(source)
apparently .color isn't valid (anymore?)
For now I commented it out, but could be checked using e.g. https://github.com/benwiley4000/react-extra-prop-types/blob/master/lib/validators/isColor.js
Warning 3
Warning: Failed prop type: Invalid prop
opacity
of typeobject
supplied toAnimatedCircularProgress
, expectednumber
.
Bad object: {
"backgroundColor": "transparent",
"position": "absolute",
"top": 0,
"left": 0,
"opacity": 0
}
Triggered by:
react-native-submit-button/main.js
Lines 112 to 128 in 4e39809
All warnings are fixed in latest Version. (1.1.0)