Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

123
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda