We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ede5723 + 98fec46 commit 7d727c0Copy full SHA for 7d727c0
index.js
@@ -52,10 +52,10 @@ class DatePicker extends Component {
52
53
componentWillMount() {
54
// ignore the warning of Failed propType for date of DatePickerIOS, will remove after being fixed by official
55
- console.ignoredYellowBox = [
56
- 'Warning: Failed propType'
57
- // Other warnings you don't want like 'jsSchedulingOverhead',
58
- ];
+ if (!console.ignoredYellowBox) {
+ console.ignoredYellowBox = [];
+ }
+ console.ignoredYellowBox.push('Warning: Failed propType');
59
}
60
61
componentWillReceiveProps(nextProps) {
0 commit comments