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.59k stars 85 forks source link

add redux #417

Open mickeypause opened 1 month ago

mickeypause commented 1 month ago

[cli] Added redux as a state management option

Description

  1. Added redux as an option to cli
  2. Wrapped every navigation into Provider
  3. Created a template with a demo store

Motivation and Context

Redux is still one of the most popular state management solutions used in production, with @reduxjs/toolkit having 3.6 million daily downloads. However, it takes a lot of effort to set it up due to the large amount of boilerplate code. These changes create a minimal Redux store and configure everything needed to start working with Redux immediately.

How Has This Been Tested?

Tested using bun run test and manually tested each option.

dannyhw commented 4 weeks ago

hey sorry that we haven't gotten to this, its not forgotten we're just thinking about the best way to approach adding more options to the cli

dannyhw commented 3 weeks ago

I added the changes also for the nativewindui layouts

dannyhw commented 2 weeks ago

I've merged the other state management pr which has caused some conflicts but I can help resolve those soon so that we can also get this merged

mickeypause commented 2 weeks ago

I've merged the other state management pr which has caused some conflicts but I can help resolve those soon so that we can also get this merged

If you want I can try to resolve those issues

dannyhw commented 2 weeks ago

@mickeypause yes that would be great, thank you 🙏