move getChildren to didMoveToWindow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user