Skip to content

Commit 4801791

Browse files
committed
fix: hot reload for shouldUsePointsForBreakpoints while switching between points and pixels
1 parent 78c354c commit 4801791

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cxx/hybridObjects/HybridStyleSheet.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ jsi::Value HybridStyleSheet::init(jsi::Runtime &rt, const jsi::Value &thisVal, c
100100
void HybridStyleSheet::parseSettings(jsi::Runtime &rt, jsi::Object settings) {
101101
auto& registry = core::UnistylesRegistry::get();
102102

103+
// set defafults
104+
registry.shouldUsePointsForBreakpoints = false;
105+
103106
helpers::enumerateJSIObject(rt, settings, [&](const std::string& propertyName, jsi::Value& propertyValue){
104107
if (propertyName == "adaptiveThemes") {
105108
helpers::assertThat(rt, propertyValue.isBool(), "StyleSheet.configure's adaptiveThemes must be of boolean type.");

0 commit comments

Comments
 (0)