Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

124
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda