2026-09-15 14:23:42 +00:00
|
|
|
// Module ID: 1219
|
|
|
|
|
// Function ID: 1220
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getSystemTheme
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [17, 1185, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-15 14:23:42 +00:00
|
|
|
// Module 1219 (getSystemTheme)
|
2026-09-10 05:38:07 +00:00
|
|
|
import _mod17 from "module_17" /* 17 */;
|
2026-09-15 14:23:42 +00:00
|
|
|
import ThemeConstants from "ThemeConstants" /* 1185 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const Appearance = _mod17.Appearance;
|
|
|
|
|
const SystemTheme = ThemeConstants.SystemTheme;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/themes/getSystemTheme.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function getSystemTheme() {
|
|
|
|
|
const colorScheme = Appearance.getColorScheme();
|
|
|
|
|
if ("light" === colorScheme) {
|
|
|
|
|
return SystemTheme.LIGHT;
|
|
|
|
|
} else if ("dark" === colorScheme) {
|
|
|
|
|
return SystemTheme.DARK;
|
|
|
|
|
} else {
|
|
|
|
|
return SystemTheme.NO_PREFERENCE;
|
|
|
|
|
}
|
|
|
|
|
};
|