diff --git a/packages/react-native-ui-lib/src/commons/asBaseComponent.tsx b/packages/react-native-ui-lib/src/commons/asBaseComponent.tsx index bcdb696f42..513528e6b8 100644 --- a/packages/react-native-ui-lib/src/commons/asBaseComponent.tsx +++ b/packages/react-native-ui-lib/src/commons/asBaseComponent.tsx @@ -19,7 +19,6 @@ export interface AsBaseComponentOptions { } const EMPTY_MODIFIERS = {}; -const colorScheme = Scheme.getSchemeType(); function asBaseComponent(WrappedComponent: React.ComponentType, options: AsBaseComponentOptions = {}) { @@ -30,7 +29,7 @@ function asBaseComponent(WrappedCompone state = { error: false, - colorScheme + colorScheme: Scheme.getSchemeType() }; componentDidMount() {