NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

[Android] Icons don't load correctly when using new architecture

Open KrastanD opened this issue 2 years ago • 4 comments
trafficstars

Description

When running a bare react-native app using new architecture on android instead of icons there is an "'R" on a red background. Turning new architecture off brings back the correct icons.

CodeSandbox/Snack link

Can't use new architecture to show

Steps to reproduce

  1. Set up new React Native app and enable new architecture.
  2. Install native-base and use an icon like the <DeleteIcon /> or the <AddIcon />
  3. Run the app on an android emulator or device and notice instead of a trash icon or + icon, there is a 'R on a red background.
  4. If you turn new architecture off and rebuild the app you will see the correct icons.

NativeBase Version

3.4.25

Platform

  • [X] Android
  • [ ] CRA
  • [ ] Expo
  • [ ] iOS
  • [ ] Next

Other Platform

No response

Additional Information

Note: The issue does not occur on iOS

With new architecture enabled: image

With new architecture disabled: image

KrastanD avatar Feb 08 '23 06:02 KrastanD

I'm seeing something similar, were you able to get it working?

rootedsoftware avatar Jun 02 '23 23:06 rootedsoftware

No, I just stopped using new architecture :/

KrastanD avatar Jun 02 '23 23:06 KrastanD

When you say "new architecture" what do you mean?

rootedsoftware avatar Jun 03 '23 15:06 rootedsoftware

https://reactnative.dev/docs/the-new-architecture/landing-page

KrastanD avatar Jun 08 '23 21:06 KrastanD