skb1129 / react-native-change-icon

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

feat: add getCurrentIcon and isAvailable methods on ios #58

Closed luoxuhai closed 2 years ago

luoxuhai commented 2 years ago

:rocket: Added getCurrentIcon and isAvailable methods on ios

import { getCurrentIcon, isAvailable } from 'react-native-change-icon';

// Gets the application's current icon name
getCurrentIcon: () => Promise<string | null>

// Determines if the platform has the capabilities to use `changeIcon`
isAvailable: () => Promise<boolean>
skb1129 commented 2 years ago

@luoxuhai we are trying to keep the functionality similar on both iOS and Android. It would be much appreciated if you can create similar functions for Android as well.

luoxuhai commented 2 years ago

Sorry, currently supports iOS.