Skip to content

Commit dc8ee0f

Browse files
authored
Merge pull request #1055 from jpudysz/feature/points-pixels
fix: hot reload for shouldUsePointsForBreakpoints while switching between points and pixels
2 parents eca09eb + 4801791 commit dc8ee0f

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)