diff --git a/Libraries/Utilities/Appearance.js b/Libraries/Utilities/Appearance.js index 39ea987a4afbc0..b63ff33c700c39 100644 --- a/Libraries/Utilities/Appearance.js +++ b/Libraries/Utilities/Appearance.js @@ -17,6 +17,7 @@ import NativeAppearance, { type ColorSchemeName, } from './NativeAppearance'; import invariant from 'invariant'; +import {isAsyncDebugging} from './DebugEnvironment'; type AppearanceListener = (preferences: AppearancePreferences) => void; const eventEmitter = new EventEmitter(); @@ -50,6 +51,14 @@ module.exports = { * @returns {?ColorSchemeName} Value for the color scheme preference. */ getColorScheme(): ?ColorSchemeName { + if (__DEV__) { + if (isAsyncDebugging) { + // Hard code light theme when using the async debugger as + // sync calls aren't supported + return 'light'; + } + } + // TODO: (hramos) T52919652 Use ?ColorSchemeName once codegen supports union const nativeColorScheme: ?string = NativeAppearance == null