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.4k stars 2.12k forks source link

8.1.0 : Icons broken on Android #1385

Closed omatrot closed 2 years ago

omatrot commented 2 years ago

Environment

Existing RN 0.59.4 application that was working fine with version 6.3.0, upgraded to 8.1.0.

settings.gradle contains:

include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')

build.gradle:

dependencies {
    implementation project(':react-native-vector-icons')
...

MainApplication.java:

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
            new VectorIconsPackage(),

Description

I'm only using ios-person and ios-timer icons, and they now appear as squares.

May be my version of RN is not supported anymore ? I may be wrong but I remember I had to do this for the app to build under Ansdroid Studio Artic Fox.

oblador commented 2 years ago

See troubleshooting