Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

118
Views
How I can organize my mobile application architecture for multi user role

I'm working on a mobile application using react native where there's multiple users type or role, (10 user type/role). and let's say there's a base screen or component, and each user role has slightly different design in this component/screen. I don't want to create multiple component with the same functionalities, and change just the code to adapt it to the user role. I believe there's a better solution.

For example the architecture we're having now is like this:

userType1/index.js
userType2/index.js
userType3/index.js
....
userType10/index.js

and all the files has the same functionalities and same design, but the only different thing is each folder and file has some different design and sometimes new feature related to that user role.

I want to have something like this:

user/index.js

where this index.js change depending on the user role, but without having a lot of conditions. is there a suggestion to fix this design pattern problem ?

Thank you in advance.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!