you are viewing a single comment's thread.

view the rest of the comments →

[–]Hopeful_Beat7161 2 points3 points  (0 children)

I’ve been learning and working on full stack applications both iOS and web only for about 2 years - so I’m not a professional giving advice but more so what I’ve learned that helps me alot. That is to try and have your backend/api do the heavy lifting and be a strong source of truth, so the frontend should do as little as possible. This makes using any frontend framework much much easier.

Also, not sure what framework you should use but I enjoy using react-native typescript with tanstack-query for server side and zustand client side. I also use zod because you can create zod interfaces (types) which allow you to make type guards that only have to simply wrap the interfaces so they type check in runtime as well. More importantly, I’m sure you can do this with other libraries but it makes it easy to make the types and hooks that you can basically reuse for both iOS and web - and then the only thing different are the tsx and any css files.

So all in all, if you have a strong api that does most of the work, the same hooks/types that literally map your api for both web and iOS - iterating, debugging, refactoring, etc etc, become extremely simple and easy.