Question du test React Native (2023)

Styler un composant avec plusieurs objets en React Native

Intermédiaire

Comment styler un composant avec de multiples objets?

Auteur: DavidStatut : PubliéeQuestion passée 297 fois
Modifier
1
Évaluations de la communauté
developer avatar
Guillaume
30/04/2024
Is the second option: style={[style.container, {backgroundColor...}]} supposed to be a correct answer as well? If yes, there's a typo error, an "s" is missing from the const variable, declared as "styles"... might be misleading
developer avatar
Auteur anonyme
20/05/2024
Du coup, il y a d'autres réponses qui ont une typo. Tu veux soumettre une modification pour avoir les points ?