Skip to content

Source icon is not a valid icon name for family "material-community"Β #4712

@trandactri

Description

@trandactri

Current behaviour

When using the icon source as receipt-text, I get the issue

"receipt-text" is not a valid icon name for family "material-community"

Expected behaviour

The icon should display the below icon without any error

Image

How to reproduce?

  1. Create an Icon tag
    <Icon/>
  2. Assign the source icon as receipt-text as
    <Icon source="receipt-text" size={24} color={MD3Colors.primary70}/>

Preview

The UI shows the question mark icon

Image

What have you tried so far?

  • Removed node-modules folder
  • Re-install react-native-paper via npm install react-native-paper

Your Environment

software version
ios 18.4
android x
react-native 0.76.9
react-native-paper 5.14.0
node 22.11.0
npm or yarn 10.9.0
expo sdk 52.0.43

Metadata

Metadata

Assignees

No one assigned

    Labels

    Iconrelated to internally used icon component based on MaterialCommunityIcons from react-native-paperbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions