react-native-paper
react-native-paper copied to clipboard
Warning after importing react-native-paper : Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.

add module:react-native-paper/babel to your babel.config.js.
My babel.config.js:
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
["module:react-native-dotenv"],
["module:babel-plugin-module-resolver", {
"alias": {
"src": "./src"
}
}],
["module:react-native-paper/babel"]
]
};
Don't forget clear cache before rebuilding:
rm -rf /tmp/metro-*
npm start --reset-cache