api-platform / create-client

Generate React or Vue.js-based Progressive Web Apps from an Hydra-enabled API. Also support React Native.
https://api-platform.com/docs/client-generator/
MIT License
373 stars 132 forks source link

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

Open 29Hido opened 8 months ago

29Hido commented 8 months ago

[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

Visual preview

Preview are from a real device

image image image

dunglas commented 8 months ago

Pretty cool! Thank you very much for working on this.

Regarding the stack, two questions:

29Hido commented 8 months ago

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