callstack / react-native-paper

Material Design for React Native (Android & iOS)
https://reactnativepaper.com
MIT License
12.5k stars 2.05k forks source link

Icons "triangle-down" and "triangle-down-outline" don't exist #4426

Open Olfdev opened 4 weeks ago

Olfdev commented 4 weeks ago

Current behaviour

"triangle-down" and "triangle-down-outline" are not recognized when using <Icon source="">

Expected behaviour

"triangle-down" and "triangle-down-outline" should work like any other Material Design Icons from https://pictogrammers.com/library/mdi/.

How to reproduce?

<Icon source="triangle-down" size={20}>
<Icon source="triangle-down-outline" size={20}>

Observe that an interrogation point is displayed with an error "Warning: Failed prop type: Invalid prop name of value triangle-down-outline supplied to Icon" or "Warning: Failed prop type: Invalid prop name of value triangle-down supplied to Icon"

mathias-berg commented 3 weeks ago

Under the hood the Icon component is using react-native-vector-icons and that has a different version of Material Community Icons where that icons doesn't exist.

I think react-native-vector-icons package is having an upgrade soon where they bump the version, and then this package needs to upgrade as well before you can access it.