about summary refs log tree commit diff
path: root/modules/react-native-ui-text-view/ios/RNUITextViewManager.swift
blob: 297bcbbb26a367c1a36596186544607306ebd07f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@objc(RNUITextViewManager)
class RNUITextViewManager: RCTViewManager {
  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 RNUITextViewShadow(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 RNUITextViewChildShadow()
  }
}