Override nativeTheme.themeSource to light or dark based on the initial nativeTheme.shouldUseDarkColors state
Additional Info
The bug was caused by nativeTheme.shouldUseDarkColors randomly going from true to false without any reasons. For the first few times everything was correct so I'm overriding nativeTheme.themeSource from the unpredictable system
Related Issue
Proposed Changes
Override
nativeTheme.themeSource
tolight
ordark
based on the initialnativeTheme.shouldUseDarkColors
stateAdditional Info
The bug was caused by
nativeTheme.shouldUseDarkColors
randomly going fromtrue
tofalse
without any reasons. For the first few times everything was correct so I'm overridingnativeTheme.themeSource
from the unpredictablesystem