create-client icon indicating copy to clipboard operation
create-client copied to clipboard

[WIP] feat: new generator for React-Native with expo

Open 29Hido opened this issue 1 year ago • 2 comments

[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

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

image image image

29Hido avatar Mar 15 '24 15:03 29Hido

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.

dunglas avatar Mar 15 '24 23:03 dunglas

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

29Hido avatar Mar 18 '24 08:03 29Hido