Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Repository files navigation

appicon

About

App & Flow is a Montreal-based React Native engineering and consulting studio. We partner with the world’s top companies and are recommended by Expo. Need a hand? Let’s build together. team@appandflow.com

Let your users dynamically change their app icons directly from within the app.

ANDROID IN PROGRESS

Getting started

$ npm install react-native-set-app-icon --save

Mostly automatic installation

$ react-native link react-native-set-app-icon

IOS

Setup XCode

Put all your images as @2x.png @3x.png in the root of your project setup.

Once that's done, go to Info.plist and follow this setup :

Usage

import SetAppIcon from "react-native-set-app-icon";

changeAppIcon

Promise that returns a boolean. Takes the iconName name set in your config.

SetAppIcon.changeIcon(iconName: string): Promise<boolean>;

If you want to set the default back just use null.

SetAppIcon.changeIcon(null);

getIconName

Takes a callback and receives an object with iconName in it.

SetAppIcon.getIconName(cb: (icon: { iconName: string }) => void): void;

supportsDynamicAppIcon

Returns a Promise with a boolean if the device accepts the dynamic app icon change.

SetAppIcon.supportsDynamicAppIcon(): Promise<boolean>;

About

Set the app icon in your react-native in app

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.