How to suppress warning due to a third-party PropTypes library in react native
There is no way to disable warnings for a specific component, but you can disable different types of warnings in your app. To disable all warnings, use:
console.disableYellowBox = true;
To disable only certain warnings that start with a given string, specify an array of prefixes to filter out:
console.ignoredYellowBox = ['Warning: ...'];
For example, for the warning in the question you could write:
console.ignoredYellowBox = [
'Warning: You are manually calling a React.PropTypes validation',
];
YellowBox API have changed from ReactNative 0.52:
To totally disable YellowBox: console.disableYellowBox = true;
To ignore some warnings:
import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings(['Warning text here...']);
https://facebook.github.io/react-native/docs/debugging#warnings