Skip to content

Commit 75e3791

Browse files
authored
fix: fix crash on iOS when adding fontWeight on old arch builds (#253)
1 parent 74d0a63 commit 75e3791

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-native-bottom-tabs/ios/Fabric/RCTTabViewComponentView.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ - (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &
156156
}
157157

158158
if (oldViewProps.fontWeight != newViewProps.fontWeight) {
159-
_tabViewProvider.fontWeigth = RCTNSStringFromStringNilIfEmpty(newViewProps.fontWeight);
159+
_tabViewProvider.fontWeight = RCTNSStringFromStringNilIfEmpty(newViewProps.fontWeight);
160160
}
161161

162162
if (oldViewProps.fontFamily != newViewProps.fontFamily) {

packages/react-native-bottom-tabs/ios/TabViewProvider.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ public final class TabInfo: NSObject {
145145
}
146146
}
147147

148-
@objc public var fontWeigth: NSString? {
148+
@objc public var fontWeight: NSString? {
149149
didSet {
150-
props.fontWeight = fontWeigth as? String
150+
props.fontWeight = fontWeight as? String
151151
}
152152
}
153153

0 commit comments

Comments
 (0)