just more cleanup
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user