mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 17:31:06 +08:00
* Added module path in package.json * Marked as having no side-effects * Disable commonjs on build
12 lines
258 B
TypeScript
12 lines
258 B
TypeScript
let uniqueBaseId: string = `id-${Date.now()}`;
|
|
let uuidCount: number = 0;
|
|
|
|
export function _TESTING_ONLY_normalize_keys(): void {
|
|
uniqueBaseId = `id`;
|
|
uuidCount = 0;
|
|
}
|
|
|
|
export function generateKey(): string {
|
|
return `${uniqueBaseId}-${uuidCount++}`;
|
|
}
|