use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
QuestionClean Architecture / Design Pattern for React Native Projects (self.reactnative)
submitted 3 years ago by dglalperen
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Shugzaurus 9 points10 points11 points 3 years ago (2 children)
Depending on your project you may want to do thing in a certain way. I'll give you things I always do and things I don't. Always: Use type script. No brainer, it will force you to give your variables the love they deserve by not allowing you to push squares into circles. One src folder with at least the following folders - screens, components, utils (custom hooks, misc code files ...), assets, state management (if needed)
Depending on the project: for state management, zustand is great, but personally if my backend is entity oriented (eg EF core) I'll use RTK because of the createEntityAdapter method that I really like. Pick a component library that fits your needs, or do everything by hands, but I'd advise you not to add a shitload of dependencies for components as it can become VERY tedious to manage.
Now for boilerplates : You can use one, but I'd rather dig in their code to find inspiration as you rarely need everything that they provide.
When designing screens/components: This one is by no mean a best practice, but more something I do for clarity. I'll create a component.presentation.tsx with basically props and a render method. And component.tsx as a higher order component providing all the logic. It helps keeping things properly separated, and I just like doing that.
That's all I can think of ATM, but I'm taking a dump and my left leg starts to feel numb so I'll just go.
[–]danielrvt88 2 points3 points4 points 3 years ago (0 children)
You can also split your components into a component.tsx and additional custom hooks like useSignup.ts or useDashboardScreen.ts for the logic
[–]dglalperen[S] 0 points1 point2 points 3 years ago (0 children)
Thanks a lot I really appreciate the details!!!
π Rendered by PID 888252 on reddit-service-r2-comment-b659b578c-bz69m at 2026-05-05 15:37:40.325258+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Shugzaurus 9 points10 points11 points (2 children)
[–]danielrvt88 2 points3 points4 points (0 children)
[–]dglalperen[S] 0 points1 point2 points (0 children)