We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8b84e2 commit a35da71Copy full SHA for a35da71
src/index.tsx
@@ -17,10 +17,10 @@ const ReactNativeDynamicAppIcon = NativeModules.ReactNativeDynamicAppIcon
17
}
18
);
19
20
-export function changeIcon(iconName: string): Promise<void> {
+export function changeIcon<T extends string>(iconName: T): Promise<void> {
21
return ReactNativeDynamicAppIcon.changeIcon(iconName);
22
23
24
-export function getIcon(): Promise<string> {
+export function getIcon<T extends string>(): Promise<T> {
25
return ReactNativeDynamicAppIcon.getIcon();
26
0 commit comments