Skip to content

Icons are not displayed in android builds #4636

@recursivetree

Description

@recursivetree

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.

Image

Expected behaviour

The icon should be rendered correctly.

How to reproduce?

  1. Use a component that uses an icon
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions