You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ios): add backgroundColor prop to top bar buttons
Add a new `backgroundColor` option to `OptionsTopBarButton` that sets a
solid color on the iOS 26 Liquid Glass circular platter behind React
component bar buttons.
Native implementation:
- Parse `backgroundColor` in RNNButtonOptions (init/copy/merge)
- Pass the resolved UIColor from RNNButtonBuilder to
RNNReactButtonView.buttonBackgroundColor
- syncButtonBackground targets the _UINavigationBarPlatter-
SubviewContainerView (self.superview³) and applies the color,
cornerRadius, and clipsToBounds to keep it circular
- Called from both didMoveToWindow (early, prevents flash on push) and
layoutSubviews (handles re-layouts)
- When buttonBackgroundColor is nil the platter resets to clearColor,
preventing color leaking between buttons during navigation transitions
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments