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