Many of the applications that I've seen or browsed through need to handle multiple different types of users whereby all users login / signup on one UI
For example in an E-commerce app you would have marketplace operators, sellers and buyers
These users would all have different types of content depending on what type of user they are
Conditional Rendering is one of the options that would immediately come to mind.
But I would like to ask if there are any best practices when handling all these different user requirements/types in react native?
Of course, presumably when the user logs in you know if they are a seller or a buyer. Just store that somewhere and show different UIs accordingly.
You can re-use the same screens and just have different content, though that is kind of ugly, re-use the same navigation structure and render different components based on what type of user is logged in, or just have two different navigation structures that parallel each other.
Lots of options in-between those as well.
Reference: https://www.reddit.com/r/reactnative/comments/ecbs37/react_app_with_multiple_users/fbawdiv?utm_source=share&utm_medium=web2x&context=3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With