roninoss / create-expo-stack

CLI tool to initialize a React Native application with Expo. Provides options to include Typescript, file-based routing via Expo Router, configuration based routing via pure React Navigation, styling via Nativewind, Restyle, Unistyles, StyleSheets, or Tamagui, and/or backend as a service such as Firebase and Supabase.
https://rn.new
MIT License
1.5k stars 84 forks source link

feat: nwui new component templates #379

Closed dannyhw closed 3 months ago

dannyhw commented 3 months ago

Description

NativewindUI has a CLI for adding code to projects, we can simplify our work here on CES by letting nwui generate that component code.

Related Issue

Motivation and Context

Easier updates for nwui

How Has This Been Tested?

Updated the snapshots and ran locally

Screenshots (if appropriate):

dannyhw commented 3 months ago

added typechecking to our tests, this fails right now because nwui is not properly giving us the selectable text component

dannyhw commented 3 months ago

Do we want to always include text by default? it seems like a lot of the templates always assume its there (using the variant prop)

  1. it was already always being included
  2. it would require a bunch of changes to existing templates to make it optional since its used everywhere
dannyhw commented 3 months ago

I've updated to always include the text component and removed the ability to remove it from the selected options