From 4ba3e59f7d024a6b1f598ad1a40e4f5fc5cd9bd7 Mon Sep 17 00:00:00 2001 From: Suraj Date: Tue, 30 May 2023 11:33:24 +0530 Subject: [PATCH] fix: color mode issue --- packages/react/src/StyledProvider.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react/src/StyledProvider.tsx b/packages/react/src/StyledProvider.tsx index 4f83f8455..ee843f30e 100644 --- a/packages/react/src/StyledProvider.tsx +++ b/packages/react/src/StyledProvider.tsx @@ -77,11 +77,11 @@ export const StyledProvider: React.FC<{ }, []); // Set colormode server side - if (typeof window === 'undefined') { - if (Platform.OS === 'web' && currentColorMode) { - set(currentColorMode === 'dark' ? 'dark' : 'light'); - } + // if (typeof window === 'undefined') { + if (Platform.OS === 'web' && currentColorMode) { + set(currentColorMode === 'dark' ? 'dark' : 'light'); } + // } let contextValue; if (Platform.OS === 'web') {