oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.31k stars 2.12k forks source link

Warning on android app when using material community icons: `Failed prop type: Invalid props.style key `resizeMode` supplied to `Text` #1409

Closed caohaley closed 1 month ago

caohaley commented 2 years ago

System: OS: macOS 11.4 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 38.84 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.17.3 - /usr/local/bin/node Yarn: 1.22.17 - ~/core/www/node_modules/.bin/yarn npm: 7.21.1 - /usr/local/bin/npm Watchman: Not Found Managers: CocoaPods: Not Found SDKs: iOS SDK: Not Found Android SDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8092744 Xcode: /undefined - /usr/bin/xcodebuild Languages: Java: 11.0.12 - /Users/haleycao/.jenv/shims/javac npmPackages: @react-native-community/cli: Not Found react: Not Found react-native: Not Found react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Description

For certain screens in our app on Android, we get the following error output:

fd60f9e9-909f-4e40-b16e-3e87eaad6eaa 165f95f1-30cf-439f-86d7-39f7ae97a592

It doesn't seem that we are supplying resizeMode to Text component in any part of our code, seems to be because of an issue in using Material Community Icons.

Reproducible Demo

Running an android app that uses Material Community Icons on the frontend.

johnf commented 8 months ago

@caohaley Can you share some example code? resizeMode would typically be passed to an Image element not a Text element

johnf commented 1 month ago

Please re-open if you can provide more info in the future.