Skip to content

Conversation

@Simek
Copy link
Contributor

@Simek Simek commented Dec 19, 2025

Why

Spotted some warnings in console related to outline* style props which has been added in React Native 0.77 for better compatibility with CSS.

Note

Supersedes an another PR which seems to have some branching issue:

How

Add support for outlineStyle, outlineOffset, outlineWidth and outlineColor style props, add test spec covering various class values related to outline.

All possible classes, besides outline has been supported via dedicated resolvers. The stand-alone outline class has been supported via simple mapping to avoid complicating parsing. Please let me know if this is a correct approach!

According to Talwind docs, I have also added new keys (outlineOffset and `outlineWidth) for the theme customization.

A side note, blog post mentions old outlineSpread prop name which got later in time renamed to outlineOffset to align with web.

Refs:

@jaredh159 jaredh159 merged commit 78aeed8 into jaredh159:master Dec 19, 2025
1 check passed
@jaredh159
Copy link
Owner

thanks, got all this released in v4.15.0 👍

@Simek Simek deleted the @simek/feat-support-outline-props branch December 19, 2025 22:31
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