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 image

but in emulator it works

image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 27 (2 by maintainers)

Most upvoted comments

I don’t know if it is safe to remove it. I think that the plugin might remove unused components and perform other optimizations behind the scenes, but as workaround for now it works well.

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 the react-native-paper/babel from my babel.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.