just more cleanup
This commit is contained in:
@@ -2,12 +2,14 @@ import ExpoModulesCore
|
|||||||
|
|
||||||
class ExpoUITextView: ExpoView {
|
class ExpoUITextView: ExpoView {
|
||||||
var textView: UITextView
|
var textView: UITextView
|
||||||
var textChildren: [ExpoUITextViewChild] = []
|
var textChildren: [ExpoUITextViewChild] = [] {
|
||||||
|
didSet {
|
||||||
|
self.setText()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let onTextLayout = EventDispatcher()
|
let onTextLayout = EventDispatcher()
|
||||||
|
|
||||||
// Props
|
|
||||||
|
|
||||||
public required init(appContext: AppContext? = nil) {
|
public required init(appContext: AppContext? = nil) {
|
||||||
if #available(iOS 16.0, *) {
|
if #available(iOS 16.0, *) {
|
||||||
textView = UITextView(usingTextLayoutManager: false)
|
textView = UITextView(usingTextLayoutManager: false)
|
||||||
@@ -149,8 +151,6 @@ class ExpoUITextView: ExpoView {
|
|||||||
|
|
||||||
// Save the children for our onPress handler
|
// Save the children for our onPress handler
|
||||||
self.textChildren = children
|
self.textChildren = children
|
||||||
// Update the UITextView with the styled text
|
|
||||||
self.setText()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func setText() -> Void {
|
func setText() -> Void {
|
||||||
|
|||||||
Reference in New Issue
Block a user