Skip to content

Adding new theming token types to React Native#2372

Merged
mirandajiang-stripe merged 1 commit intomasterfrom
new-tokens-rn
Apr 1, 2026
Merged

Adding new theming token types to React Native#2372
mirandajiang-stripe merged 1 commit intomasterfrom
new-tokens-rn

Conversation

@mirandajiang-stripe
Copy link
Copy Markdown
Collaborator

@mirandajiang-stripe mirandajiang-stripe commented Mar 30, 2026

Summary

In this PR, the types for the new theming tokens in ConnectJS were added to React Native. This change allows platforms to customize embedded components on React Native as well, ensuring a consistent experience across mobile and web. Additionally, a new preset theme, "New theming tokens", was added to ensure there are no type errors and all the added types within ConnectJS are carrying over correctly.

Motivation

Platforms requested more granular theming to ensure the embedded UI matches their native UI. New tokens that allow finer control over padding, font, and color for components have been implemented on ConnectJS behind the enable_new_embedded_theming_tokens flag. The last phase of implementation is to bring this to mobile SDKs and React Native.

For more context: Adding additional theming functionality for embedded components

Testing

  • I tested this manually
  • I added automated tests

I tested the changes locally with an iOS Simulator. Below is a screen recording of the React Native app working while using the new tokens in the new preset theme.

Screen.Recording.2026-03-30.at.4.12.28.PM.mov

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

@mirandajiang-stripe mirandajiang-stripe marked this pull request as ready for review March 30, 2026 23:18
@mirandajiang-stripe mirandajiang-stripe requested review from a team as code owners March 30, 2026 23:18
Copy link
Copy Markdown
Contributor

@gimenete-stripe gimenete-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@mirandajiang-stripe mirandajiang-stripe merged commit 2ab9526 into master Apr 1, 2026
8 checks passed
@mirandajiang-stripe mirandajiang-stripe deleted the new-tokens-rn branch April 1, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants