Skip to content

Commit

Permalink
fix(fixed): update example to the latest RN, update android package n…
Browse files Browse the repository at this point in the history
…ame to fix expo 52 build issue
  • Loading branch information
tr3v3r committed Dec 30, 2024
1 parent 69ea7bf commit dfd98dc
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/core/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
export function remapConstants<T extends object>(
constants: T
): Record<string, keyof T> {
return Object.keys(constants).reduce((acc, key) => {
const value = constants[key as keyof T];
acc[String(value)] = key as keyof T;
return acc;
}, {} as Record<string, keyof T>);
return Object.keys(constants).reduce(
(acc, key) => {
const value = constants[key as keyof T];
acc[String(value)] = key as keyof T;
return acc;
},
{} as Record<string, keyof T>
);
}

0 comments on commit dfd98dc

Please sign in to comment.