Skip to content

Refactor: TypeScript structure to reduce redundancy#24

Merged
mathdebate09 merged 2 commits into
nativeflowteam:mainfrom
mathdebate09:refact_ts_struct
May 3, 2026
Merged

Refactor: TypeScript structure to reduce redundancy#24
mathdebate09 merged 2 commits into
nativeflowteam:mainfrom
mathdebate09:refact_ts_struct

Conversation

@mathdebate09

Copy link
Copy Markdown
Member

Because

I didn't know shit about typesafety back then dawg the whole codebase was a mess, probably still is

This PR

  • every type extends a pre-existing react-native type
  • constants section for colors, spacing values etc.
  • remove all of the as SomeStyle assertions

Issue

Closes nil

Additional Information

No response

(Optional) Discord username

No response

Pull Request Requirements

  • I have thoroughly read and understand Contributing Guide
  • The title of this PR follows the location of change: brief description of change format, e.g. Sizing: Add padding support
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • If this PR addresses an open issue, it is linked in the Issue section

@github-actions github-actions Bot added Spacing Manage padding and margin utilities for consistent spacing across components Flexbox Utilities for flexible box layout, including alignment, justification, and gap management Border Control border width, color, and individual side borders for elements Typography Style text with font size, weight, line height, and other typographic utilities. Layout Utilities for positioning, display, and layout management of components Effects Manage various effects like background color, shadow, overlay, etc. for native props Shadow Shadow properties for styling in native labels May 3, 2026
@mathdebate09 mathdebate09 merged commit e2da36b into nativeflowteam:main May 3, 2026
4 checks passed
@mathdebate09 mathdebate09 deleted the refact_ts_struct branch May 3, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Border Control border width, color, and individual side borders for elements Effects Manage various effects like background color, shadow, overlay, etc. for native props Flexbox Utilities for flexible box layout, including alignment, justification, and gap management Layout Utilities for positioning, display, and layout management of components Shadow Shadow properties for styling in native Spacing Manage padding and margin utilities for consistent spacing across components Typography Style text with font size, weight, line height, and other typographic utilities.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant