outsung / expo-dynamic-app-icon

🤖 Programmatically change the app icon in Expo.
106 stars 23 forks source link

Issue with ExpoDynamicAppIcon #7

Closed bjwie closed 1 year ago

bjwie commented 1 year ago

Hi Outsung, first of all, thank you for you effort and this repo.

When I try to import import { getAppIcon, setAppIcon } from "expo-dynamic-app-icon";

Im getting this error, do you have any idea how to fix it? I have tried to reinstall, but it doenst help.

caught Error: Cannot find native module 'ExpoDynamicAppIcon'
    at requireNativeModule (requireNativeModule.ts:42:1)
    at ./node_modules/expo-dynamic-app-icon/build/ExpoDynamicAppIconModule.js (ExpoDynamicAppIconModule.ts:5:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:62:1)
    at ./node_modules/expo-dynamic-app-icon/build/index.js (ExpoDynamicAppIconModule.ts:5:1)

Best regards Björn

outsung commented 1 year ago

How did you execute it???

Do not use Expo GO.

Rebuild and try the dev-client.

Create new expo-dev-client

create a new expo-dev-client and begin using expo-dynamic-app-icon