create-client
create-client copied to clipboard
[WIP] feat: new generator for React-Native with expo
[WIP] New generator for React-Native using Expo
This PR is WIP
Lifting of the react-native generator Current version of expo generator was made in Javascript, this version is fully typed with Typescript
Added libraries
- Expo Router to handle navigation
- Tanstack to handle api calls
- NativeWind to make the app look like other recent generators
- React-Hook-Form to handle forms
TODO
- [x] Add support for mercure (present in current generator)
- [x] Add confirm box for delete button (present in current generator)
- [x] Handle hydra:prefix (not present in current generator)
- [x] Handle entity relations (not present in current generator)
- [ ] Fix fields generation bug when generated from api-platform demo (not present in current generator)
Visual preview
Preview are from a real device
Pretty cool! Thank you very much for working on this.
Regarding the stack, two questions:
- Is it still worth it to use Redux? It isn't hype anymore and it introduces a lot of complexity. As it's a minimal template, I'm not sure it is necessary
- Can we use TanStack Query instead for API queries? It is popular and provides nice features.
Pretty cool! Thank you very much for working on this.
Regarding the stack, two questions:
* Is it still worth it to use Redux? It isn't hype anymore and it introduces a lot of complexity. As it's a minimal template, I'm not sure it is necessary * Can we use TanStack Query instead for API queries? It is popular and provides nice features.
Hello
Yes we could, I'll try the migration to see how it goes but it seems better indeed