react-native-paper: Theme not working when generating release build APK RNP 4.2.0
Hi after issuing this command npx react-native run-android --variant=release
and install the release apk to my real device the theme is not working
RN version : react-native@0.63.2
RNP version: react-native-paper@4.2.0
react-native-vector-icons:react-native-vector-icons@7.1.0
Header is black instead default color purplr
but in emulator it works
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 27 (2 by maintainers)
I can confirm my apps do build and run, but it’s a bit distressing that such a central plugin to the package is malfunctioning on production.
It appears to be a trouble with the
babel.config.js
, I’ve removed thereact-native-paper/babel
from mybabel.config.js
and it seems to work properly when I perform a production build.Still relevant, still unanswered
Not working in react-native-paper react-native-paper@4.2.0
Still an issue with 4.12.4 Build only shows default theme with ‘react-native-paper/babel’ in the babel.config.js
I have the same issue, I was getting crazy finding the issue. The Babel-Thing is a good workaround for now.