Pensano-dev / aura-mobile-app

4 stars 0 forks source link

doc: FE - custom Button component styling props and styles #82

Open pablisch opened 6 months ago

pablisch commented 6 months ago

Chiara is currently finishing a ticket for the menu bar which in the main page will have two buttons. The MVP mockups show them to be different colours. Throuhgout the app we will no doubt need the Button component to be different colours, background and text, with different padding and margins.

In React Dom I would achieve this through props including classNames passed in as props, but how does this work in React Native, or rather, what is the best way. Perhaps Ju and Luiz already know this.

This ticket is to play around with the two buttons (in or soon to be in the menu bar) and more importantly, write clear documentation for the rest of the group on how to apply the necessary styles to the Button component to use anywhere in the app.

NOTE: Button is a built-in component in React Native so the name of our custom button should be changed, e.g. AuraButton, MyButton, etc.

AC: