Skip to content

IconButton crashes due to missing dependency on react-native-vector-icons #4443

@T1t4m1un

Description

@T1t4m1un

React Native Paper Version: 5.12.3 latest
React Native Version: 0.74.2 latest
Platform: Android

When using IconButton, the app crashes due to a missing dependency on react-native-vector-icons:
image

Reproduce:

  • Step 1: Set up a new project with React Native and React Native Paper.
  • Step 2: Try to use IconButton without manually adding react-native-vector-icons to the dependencies.
  • Step 3: Observe the crash.

This problem has an overflow effect on components that use IconButton. I discovered the problem when using SearchBar.

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