{"_id":"@arindambiswas1/b-expo-dynamic-app-icon","_rev":"1-0833e329b1e1bea1fbc1a8d89d27ca63","name":"@arindambiswas1/b-expo-dynamic-app-icon","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@arindambiswas1/b-expo-dynamic-app-icon","version":"1.0.1","keywords":["react-native","expo","expo-dynamic-app-icon","ExpoDynamicAppIcon"],"author":{"name":"Hemza kouloughli","email":"hemza@nixa.ca"},"license":"MIT","_id":"@arindambiswas1/b-expo-dynamic-app-icon@1.0.1","maintainers":[{"name":"arindambiswas1","email":"arindam@bitpod.io"}],"homepage":"https://github.com/arindambiswas1/expo-dynamic-app-icon#readme","bugs":{"url":"https://github.com/arindambiswas1/expo-dynamic-app-icon/issues"},"dist":{"shasum":"20d007274959d3575f4256c8319f9bae4db45673","tarball":"https://registry.npmjs.org/@arindambiswas1/b-expo-dynamic-app-icon/-/b-expo-dynamic-app-icon-1.0.1.tgz","fileCount":30,"integrity":"sha512-ghsveIN9KnAg/ZGThRccEfmIvbWBs9dwTaVIi464jMVvtrBzT7kvYs6bOwcfp+m8nChiU91XNUcY/9rdFAeUZQ==","signatures":[{"sig":"MEQCIEhskJ+R8+LNjWL33LOOe4m4DF0t1tuEjSzhu6TDldE7AiBpvsONQulZ803BPnuXbDV71f0u5qIl3Tt+ifi6/8kUag==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48746},"main":"build/index.js","types":"build/index.d.ts","gitHead":"09e9258787e27b991a43cf9347ba7ae4192d37bd","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","open:ios":"open -a \"Xcode\" example/ios","expo-module":"expo-module","build:plugin":"tsc --build ./plugin","open:android":"open -a \"Android Studio\" example/android","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"arindambiswas1","email":"arindam@bitpod.io"},"repository":{"url":"git+https://github.com/arindambiswas1/expo-dynamic-app-icon.git","type":"git"},"_npmVersion":"10.8.2","description":"Expo dynamic app icon, Change app icon on IOS And Android with a single line of code","directories":{},"_nodeVersion":"20.18.1","dependencies":{"expo-modules":"^0.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/react":"^18.0.25","@expo/image-utils":"^0.3.23","expo-modules-core":"^1.0.3","@types/react-native":"^0.70.6","expo-module-scripts":"^3.5.4"},"peerDependencies":{"expo":">=49","react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/b-expo-dynamic-app-icon_1.0.1_1736738376725_0.9968244858444346","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@arindambiswas1/b-expo-dynamic-app-icon","version":"1.0.2","description":"Programmatically change the app icon in Expo.","main":"build/index.js","types":"build/index.d.ts","scripts":{"build":"expo-module build","build:plugin":"tsc --build ./plugin","clean":"expo-module clean","lint":"expo-module lint","test":"expo-module test","prepare":"expo-module prepare","prepublishOnly":"expo-module prepublishOnly","expo-module":"expo-module","open:ios":"open -a \"Xcode\" example/ios","open:android":"open -a \"Android Studio\" example/android"},"keywords":["react-native","expo","expo-dynamic-app-icon","ExpoDynamicAppIcon"],"repository":{"type":"git","url":"git+https://github.com/mozzius/expo-dynamic-app-icon.git"},"bugs":{"url":"https://github.com/mozzius/expo-dynamic-app-icon/issues"},"author":{"name":"Samuel Newman","email":"mozzius@protonmail.com","url":"https://github.com/mozzius"},"license":"MIT","homepage":"https://github.com/mozzius/expo-dynamic-app-icon#readme","dependencies":{"expo-modules-core":"^2.1.1","@expo/image-utils":"^0.6.3","xcode":"^3.0.1"},"devDependencies":{"@types/react":"^18.0.25","@types/react-native":"^0.70.6","expo-module-scripts":"^4.0.2"},"peerDependencies":{"expo":"^52","react":"*","react-native":"*"},"_id":"@arindambiswas1/b-expo-dynamic-app-icon@1.0.2","gitHead":"e41e922dd42935937c53b2e26787127d981e6b5f","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-EQG3F2E57kZm+y5yikRgbx/S++MAfshBXupCdx2LYVyLXhxTZK65HmnOkrpURbi2U+aFWaTn8KNL6ZpgjvErTw==","shasum":"a28124584a028d852b4ecc730a1261b77611f216","tarball":"https://registry.npmjs.org/@arindambiswas1/b-expo-dynamic-app-icon/-/b-expo-dynamic-app-icon-1.0.2.tgz","fileCount":18,"unpackedSize":9268,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID/lx1+KU73jAmYijjvgtgraXLhc/SJ4nBFRn8xPMWgQAiEAq/AidnnzotUOF+BfxhcyUOkth0Pht87ak4U/k8jOuuI="}]},"_npmUser":{"name":"arindambiswas1","email":"arindam@bitpod.io"},"directories":{},"maintainers":[{"name":"arindambiswas1","email":"arindam@bitpod.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/b-expo-dynamic-app-icon_1.0.2_1736743786434_0.48296319692300593"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-13T03:19:36.628Z","modified":"2025-01-13T04:49:46.776Z","1.0.1":"2025-01-13T03:19:36.898Z","1.0.2":"2025-01-13T04:49:46.610Z"},"bugs":{"url":"https://github.com/mozzius/expo-dynamic-app-icon/issues"},"author":{"name":"Samuel Newman","email":"mozzius@protonmail.com","url":"https://github.com/mozzius"},"license":"MIT","homepage":"https://github.com/mozzius/expo-dynamic-app-icon#readme","keywords":["react-native","expo","expo-dynamic-app-icon","ExpoDynamicAppIcon"],"repository":{"type":"git","url":"git+https://github.com/mozzius/expo-dynamic-app-icon.git"},"description":"Programmatically change the app icon in Expo.","maintainers":[{"name":"arindambiswas1","email":"arindam@bitpod.io"}],"readme":"# @mozzius/expo-dynamic-app-icon\n\n> [!NOTE]\n> This is a fork of [expo-dynamic-app-icon](https://github.com/outsung/expo-dynamic-app-icon) to support Expo SDK 51.\n> It also includes:\n>\n> - support for resetting the icon to the default\n> - round icon support\n> - different icons for Android and iOS\n\nProgrammatically change the app icon in Expo.\n\n## Install\n\n```\nnpx expo install @mozzius/expo-dynamic-app-icon\n```\n\n## Set icon file\n\nadd plugins in `app.json`\n\n```typescript\n \"plugins\": [\n      [\n        \"expo-dynamic-app-icon\",\n        {\n          \"red\": { // icon name\n            \"ios\": \"./assets/ios_icon1.png\", // icon path for ios\n            \"android\": \"./assets/android_icon1.png\", // icon path for android\n            \"prerendered\": true // for ios UIPrerenderedIcon option\n          },\n          \"gray\": {\n            \"android\": \"./assets/icon2.png\", // android-only icon\n          }\n        }\n      ]\n    ]\n```\n\n## Check AndroidManifest (for android)\n\n```\nexpo prebuild\n```\n\ncheck added line\n[AndroidManifest.xml](./example/android/app/src/main/AndroidManifest.xml#L33-L44)\n\n```xml\n  ...\n    <activity-alias android:name=\"expo.modules.dynamicappicon.example.MainActivityred\" android:enabled=\"false\" android:exported=\"true\" android:icon=\"@mipmap/red\" android:targetActivity=\".MainActivity\">\n      <intent-filter>\n        <action android:name=\"android.intent.action.MAIN\"/>\n        <category android:name=\"android.intent.category.LAUNCHER\"/>\n      </intent-filter>\n    </activity-alias>\n    <activity-alias android:name=\"expo.modules.dynamicappicon.example.MainActivitygray\" android:enabled=\"false\" android:exported=\"true\" android:icon=\"@mipmap/gray\" android:targetActivity=\".MainActivity\">\n      <intent-filter>\n        <action android:name=\"android.intent.action.MAIN\"/>\n        <category android:name=\"android.intent.category.LAUNCHER\"/>\n      </intent-filter>\n    </activity-alias>\n  ...\n```\n\n## Create new `expo-dev-client`\n\ncreate a new `expo-dev-client` and begin using `expo-dynamic-app-icon`\n\n## Use `setAppIcon`\n\n- if error, return **false**\n- else, return **changed app icon name**\n- pass `null` to reset app icon to default\n\n```typescript\nimport { setAppIcon } from \"expo-dynamic-app-icon\";\n\n...\n\nsetAppIcon(\"red\") // set icon 'assets/icon1.png'\n```\n\n## Use `getAppIcon`\n\nget current app icon name\n\n- default return is `DEFAULT`\n\n```typescript\nimport { getAppIcon } from \"expo-dynamic-app-icon\";\n\n...\n\ngetAppIcon() // get current icon name 'red'\n```\n\nBuy outsung (original author) a coffee! I couldn't have done it without his work! 👇\n\n<a href=\"https://www.buymeacoffee.com/outsung\" target=\"_blank\"><img src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" ></a>\n","readmeFilename":"README.md"}