From 7fb117d213149dfee9d0e79292b267b3cd5bde0e Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 3 Apr 2024 18:05:03 -0700 Subject: Upgrade `UITextView` to latest (#3090) * uitextview use library w/ fixes bump bump multiple uitextview fixes * bump * update to latest * cleanup --- .../ios/RNUITextViewChildShadow.swift | 56 ---------------------- 1 file changed, 56 deletions(-) delete mode 100644 modules/react-native-ui-text-view/ios/RNUITextViewChildShadow.swift (limited to 'modules/react-native-ui-text-view/ios/RNUITextViewChildShadow.swift') diff --git a/modules/react-native-ui-text-view/ios/RNUITextViewChildShadow.swift b/modules/react-native-ui-text-view/ios/RNUITextViewChildShadow.swift deleted file mode 100644 index 09119a369..000000000 --- a/modules/react-native-ui-text-view/ios/RNUITextViewChildShadow.swift +++ /dev/null @@ -1,56 +0,0 @@ -// We want all of our props to be available in the child's shadow view so we -// can create the attributed text before mount and calculate the needed size -// for the view. -class RNUITextViewChildShadow: RCTShadowView { - @objc var text: String = "" - @objc var color: UIColor = .black - @objc var fontSize: CGFloat = 16.0 - @objc var fontStyle: String = "normal" - @objc var fontWeight: String = "normal" - @objc var letterSpacing: CGFloat = 0.0 - @objc var lineHeight: CGFloat = 0.0 - @objc var pointerEvents: NSString? - - override func isYogaLeafNode() -> Bool { - return true - } - - override func didSetProps(_ changedProps: [String]!) { - guard let superview = self.superview as? RNUITextViewShadow else { - return - } - - if !YGNodeIsDirty(superview.yogaNode) { - superview.setAttributedText() - } - } - - func getFontWeight() -> UIFont.Weight { - switch self.fontWeight { - case "bold": - return .bold - case "normal": - return .regular - case "100": - return .ultraLight - case "200": - return .ultraLight - case "300": - return .light - case "400": - return .regular - case "500": - return .medium - case "600": - return .semibold - case "700": - return .semibold - case "800": - return .bold - case "900": - return .heavy - default: - return .regular - } - } -} -- cgit 1.4.1