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) { override func insertReactSubview(_ subview: UIView!, at atIndex: Int) {
if subview.isKind(of: ExpoUITextViewChild.self) { if subview.isKind(of: ExpoUITextViewChild.self) {
insertSubview(subview, at: atIndex) insertSubview(subview, at: atIndex)
self.getTextChildren()
} }
} }
@@ -64,6 +63,10 @@ class ExpoUITextView: ExpoView {
return subviews return subviews
} }
override func didMoveToWindow() {
self.getTextChildren()
}
override func layoutSubviews() { override func layoutSubviews() {
// Get the width from the bounds // Get the width from the bounds
let maxWidth = bounds.width let maxWidth = bounds.width