oblador/react-native-vector-icons

[ rnvi/common: 0.0.1-alpha.20 + rn 0.76.0-rc.6] error: getImageForFontSync

jbrodriguez opened this issue · 2 comments

Environment

Os: macos
target: android
rnvi:
"@react-native-vector-icons/common": "^0.0.1-alpha.20",
"@react-native-vector-icons/feather": "^4.29.2-alpha.25",
"@react-native-vector-icons/material-design-icons": "^7.4.47-alpha.25",

react-native
0.76.0-rc.2

Description

when compiling on android it triggers the following error

<snipped>/node_modules/@react-native-vector-icons/common/android/src/main/java/com/reactnativevectoricons/common/VectorIconsModule.java:62: error: getImageForFontSync(String,String,double,double) in VectorIconsModule cannot override getImageForFontSync(String,String,double,double) in NativeVectorIconsSpec
  public String getImageForFontSync(String fontFamily, String glyph, double fontSizeD, double colorD) throws IOException, FileNotFoundException {
                ^
  overridden method does not throw FileNotFoundException

@jbrodriguez, Could you try updating to the latest version? I believe those should be fixed.

yes, thank you, solved in the latest version