Skip to content

Commit 172daaf

Browse files
committed
fix: run all lifecycle callbacks on didMoveToWindow to get the styles on mount
1 parent b2e3098 commit 172daaf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ios/EnrichedTextInputView.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,8 @@ - (void)_performRelayout
11241124

11251125
- (void)didMoveToWindow {
11261126
[super didMoveToWindow];
1127-
[self scheduleRelayoutIfNeeded];
1127+
// used to run all lifecycle callbacks
1128+
[self anyTextMayHaveBeenModified];
11281129
}
11291130

11301131
// MARK: - UITextView delegate methods

0 commit comments

Comments
 (0)