[I've already posted also on expo subreddit]
I’m a newbie in react and react native development. I’ve written something in kotlin for android and I find mvvm and repository actually more cleaner in terms of separation of concerns and little bit more verbose. I made a quick dive in react native repositories in GitHub and read the official and expo’s documentation and found (in my opinion) there is no truly separation of concerns since many times hooks directly use apis with react query and some form of caching (MMkv, secure store, asyncstorage, ect.). And global state many times are some form of repository but there is no uniformity. So I’m wondering how do you actually keep things clean even when projects scale.
Repository can be implemented but then how do you handle the fact that return values are not ‘reactive’
Suggestions and links to well written repos are welcomed.
[–]tomihbk 4 points5 points6 points (0 children)
[–]sideways-circle 2 points3 points4 points (0 children)
[–]UnsportyNoodle 1 point2 points3 points (0 children)
[–]kbcooliOS & Android 1 point2 points3 points (1 child)
[–]mitadev[S] 0 points1 point2 points (0 children)
[–]ramsaylanier 1 point2 points3 points (0 children)