Skip to content

Commit 4eb67d5

Browse files
committed
fix(ios): initialize state size for initial width
1 parent 8e3f4c6 commit 4eb67d5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ios/TrueSheetView.mm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,12 @@ - (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &
262262

263263
- (void)updateState:(const State::Shared &)state oldState:(const State::Shared &)oldState {
264264
_state = std::static_pointer_cast<TrueSheetViewShadowNode::ConcreteState const>(state);
265+
266+
// Initialize with _controller size to set initial width
267+
if (_controller) {
268+
[self updateStateWithSize:_controller.view.frame.size];
269+
}
270+
265271
[_screensEventObserver startObservingWithState:_state.get()->getData()];
266272
}
267273

0 commit comments

Comments
 (0)