react-native-vector-icons icon indicating copy to clipboard operation
react-native-vector-icons copied to clipboard

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

Open caohaley opened this issue 3 years ago • 1 comments

  • [x] Review the documentation: https://github.com/oblador/react-native-vector-icons
  • [x] Search for existing issues (including closed issues): https://github.com/oblador/react-native-vector-icons/issues

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.

caohaley avatar Feb 11 '22 19:02 caohaley

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

johnf avatar Oct 28 '23 21:10 johnf