also looking at this
fix(native): preserve workspace sources and native overlay lifecycle
#384
20 files
+500
-227
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -263,7 +263,7 @@ describe('native renderer component contract', () => { | ||
| 263 | 263 | expect(android).toContain('else if (requestedChecked is Boolean)') |
| 264 | 264 | expect(guide).toContain('`checked` is a compatibility alias') |
| 265 | 265 | expect(guide).toContain('`value` is null, and `value` takes precedence') |
| 266 | expect(navigationHome).toContain('<Switch testID="switch-value-precedence" :value="false" :checked="true" />') | |
| 266 | expect(navigationHome).toContain('<Switch testID="switch-value-precedence" :value="precedenceSwitchValue" :checked="true" @value-change="precedenceSwitchValue.set($event.value)" />') | |
| 267 | 267 | expect(navigationHome).toContain('<Switch testID="uncontrolled-switch" />') |
| 268 | 268 | expect(androidNavigationTest).toContain('non-null switch value should take precedence over checked') |
| 269 | 269 | expect(androidNavigationTest).toContain('uncontrolled switch should keep its native toggle') |
| @@ -274,7 +274,7 @@ describe('native renderer component contract', () => { | ||
| 274 | 274 | expect(componentTypes).toContain('checked?: boolean') |
| 275 | 275 | expect(ios).toContain('props["checked"] as? Bool) ?? (props["value"] as? Bool) ?? false') |
| 276 | 276 | expect(android).toContain('checkboxChecked is Boolean -> checkboxChecked') |
| 277 | expect(navigationHome).toContain('<Checkbox testID="checkbox-checked-precedence" :checked="false" :value="true" />') | |
| 277 | expect(navigationHome).toContain('<Checkbox testID="checkbox-checked-precedence" :checked="precedenceCheckboxChecked" :value="true" @value-change="precedenceCheckboxChecked.set($event.value)" />') | |
| 278 | 278 | expect(androidNavigationTest).toContain('checked should take precedence over value') |
| 279 | 279 | expect(iosNavigationTest).toContain('let uncheckedCheckbox = app.buttons["checkbox-checked-precedence"]') |
| 280 | 280 | expect(iosNavigationTest).toContain('XCTAssertFalse(uncheckedCheckbox.isSelected)') |