just more cleanup

This commit is contained in:
Hailey
2024-01-15 17:56:43 -08:00
parent d39f7a937d
commit d92584bad7
@@ -2,12 +2,14 @@ import ExpoModulesCore
class ExpoUITextView: ExpoView {
var textView: UITextView
var textChildren: [ExpoUITextViewChild] = []
var textChildren: [ExpoUITextViewChild] = [] {
didSet {
self.setText()
}
}
let onTextLayout = EventDispatcher()
// Props
public required init(appContext: AppContext? = nil) {
if #available(iOS 16.0, *) {
textView = UITextView(usingTextLayoutManager: false)
@@ -149,8 +151,6 @@ class ExpoUITextView: ExpoView {
// Save the children for our onPress handler
self.textChildren = children
// Update the UITextView with the styled text
self.setText()
}
func setText() -> Void {