Skip to content

Commit c2864c1

Browse files
qnnp-mefacebook-github-bot
authored andcommitted
Added type definitions for Colors object in LaunchScreen module (facebook#50118)
Summary: ## Changelog: [GENERAL] [ADDED] - Added type definitions for Colors object in LaunchScreen module to enhance code readability and type safety. Pull Request resolved: facebook#50118 Reviewed By: NickGerleman Differential Revision: D71491870 Pulled By: lunaleaps fbshipit-source-id: 48205fb4d03098f9bea32c1c18c5b18deb4fd7f0
1 parent 69ccbc3 commit c2864c1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/react-native/types/modules/LaunchScreen.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@
1212
declare module 'react-native/Libraries/NewAppScreen' {
1313
export const Header: any;
1414
export const LearnMoreLinks: any;
15-
export const Colors: any;
15+
export const Colors: {
16+
primary: string;
17+
white: string;
18+
lighter: string;
19+
light: string;
20+
dark: string;
21+
darker: string;
22+
black: string;
23+
};
1624
export const DebugInstructions: any;
1725
export const ReloadInstructions: any;
1826
}

0 commit comments

Comments
 (0)