Question from the React Native (2023) test

Style a component with multiple objects in React Native

Medium

How would you style a component with multiple objects?

Author: DavidStatus: PublishedQuestion passed 351 times
Edit
1
Community Evaluations
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 ?