skb1129 / react-native-change-icon

Change your application icon programmatically for React Native apps
MIT License
500 stars 91 forks source link

Cannot read property 'changeIcon' of null #78

Closed GabiCtrlZ closed 1 year ago

GabiCtrlZ commented 1 year ago

Platform

Description When trying to run the changeIcon function, I'm running into this error: "Cannot read property 'changeIcon' of null". It seems that NativeModules.ChangeIcon returns null for some reason.

To Reproduce Literally just followed the README example

Device (please complete the following information):

Versions

tmbradley commented 1 year ago

@GabiCtrlZ Have you done a pod install after the npm install?

GabiCtrlZ commented 1 year ago

@tmbradley Oh you're right, after running pod install everything works :)

erie-e9 commented 1 year ago

Same error, using Hermes new structure. react-native: 0.72.4 react-native-change-icon: 5.0.0

I ran pod install as @GabiCtrlZ mentioned, any idea?

Simulator Screenshot - iPhone 11-15 5 - 2023-09-27 at 12 57 57