react-native-ui-lib
Version:
<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a
28 lines (25 loc) • 689 B
JavaScript
function warn(message) {
if (__DEV__) {
console.warn(message);
}
}
function deprecationWarn({
component,
oldProp,
newProp
}) {
const message = newProp ? `RNUILib's ${component} "${oldProp}" prop will be deprecated soon, please use the "${newProp}" prop instead` : `RNUILib's ${component} "${oldProp}" prop will be deprecated soon, please stop using it`;
warn(message);
}
function componentDeprecationWarn({
oldComponent,
newComponent
}) {
const message = `RNUILib's ${oldComponent} component will be deprecated soon, please use the "${newComponent}" component instead`;
warn(message);
}
export default {
warn,
deprecationWarn,
componentDeprecationWarn
};