move getChildren to didMoveToWindow

This commit is contained in:
Hailey
2024-01-16 15:47:24 -08:00
parent 87d44e4b57
commit daedd1f671
@@ -49,7 +49,6 @@ class ExpoUITextView: ExpoView {
override func insertReactSubview(_ subview: UIView!, at atIndex: Int) {
if subview.isKind(of: ExpoUITextViewChild.self) {
insertSubview(subview, at: atIndex)
self.getTextChildren()
}
}
@@ -64,6 +63,10 @@ class ExpoUITextView: ExpoView {
return subviews
}
override func didMoveToWindow() {
self.getTextChildren()
}
override func layoutSubviews() {
// Get the width from the bounds
let maxWidth = bounds.width