Skip to content

Commit

Permalink
fix: fix crash on iOS when adding fontWeight on old arch builds (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
owinter86 authored Jan 23, 2025
1 parent 74d0a63 commit 75e3791
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ - (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &
}

if (oldViewProps.fontWeight != newViewProps.fontWeight) {
_tabViewProvider.fontWeigth = RCTNSStringFromStringNilIfEmpty(newViewProps.fontWeight);
_tabViewProvider.fontWeight = RCTNSStringFromStringNilIfEmpty(newViewProps.fontWeight);
}

if (oldViewProps.fontFamily != newViewProps.fontFamily) {
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-bottom-tabs/ios/TabViewProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ public final class TabInfo: NSObject {
}
}

@objc public var fontWeigth: NSString? {
@objc public var fontWeight: NSString? {
didSet {
props.fontWeight = fontWeigth as? String
props.fontWeight = fontWeight as? String
}
}

Expand Down

0 comments on commit 75e3791

Please sign in to comment.