-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Description
Current behaviour
When I'm creating a android build, icons (e.g. the back button of the stack navigator) don't show. There is just a white space where the icons is supposed to be.
Expected behaviour
The icon should be rendered correctly.
How to reproduce?
- Use a component that uses an icon
- Create an android build (e.g. an .apk), install it and look at the icon. Note: It works fine in expo go
Preview
What have you tried so far?
I've made sure to follow the install steps described here: https://callstack.github.io/react-native-paper/docs/guides/getting-started#installation
As far as I understand, for android on expo you have to follow the following steps:
npm install react-native-paper
npm install react-native-safe-area-context
npm install react-native-vector-icons
Change babel.config.js to:
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
env: {
production: {
plugins: ['react-native-paper/babel'],
},
},
};
};
Your Environment
| software | version |
|---|---|
| ios | not relevant |
| android | Android 15 api 35 |
| react-native | 0.76.3 |
| react-native-paper | 5.13.1 |
| node | v22.13.1 |
| npm or yarn | 10.9.2 |
| expo sdk | 52.0.11 |