decord/source/modules/themes/getSystemTheme.native.tsx
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

25 lines
738 B
TypeScript

// Module ID: 1219
// Function ID: 1220
// Name: getSystemTheme
// Dependencies: [17, 1185, 2]
// Exports: default
// Module 1219 (getSystemTheme)
import _mod17 from "module_17" /* 17 */;
import ThemeConstants from "ThemeConstants" /* 1185 */;
import size from "module_2" /* 2 */;
const Appearance = _mod17.Appearance;
const SystemTheme = ThemeConstants.SystemTheme;
const result = size.fileFinishedImporting("modules/themes/getSystemTheme.native.tsx");
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;
}
};