make use of rctshadowview

This commit is contained in:
Hailey
2024-01-18 21:14:38 -08:00
parent 7134e1106e
commit 18f818649e
23 changed files with 934 additions and 2 deletions
@@ -0,0 +1,32 @@
@objc(RNUITextViewManager)
class RNUITextViewManager: RCTViewManager {
var textStorage = NSTextStorage()
override func view() -> (RNUITextView) {
return RNUITextView()
}
@objc override static func requiresMainQueueSetup() -> Bool {
return true
}
override func shadowView() -> RCTShadowView {
// Pass the bridge to the shadow view
return RNUITextViewShadowView(bridge: self.bridge)
}
}
@objc(RNUITextViewChildManager)
class RNUITextViewChildManager: RCTViewManager {
override func view() -> (RNUITextViewChild) {
return RNUITextViewChild()
}
@objc override static func requiresMainQueueSetup() -> Bool {
return true
}
override func shadowView() -> RCTShadowView {
return RNUITextViewChildShadowView()
}
}