Learn
Well done! You’ve covered some of React Native’s most common core components. Let’s review:
- The
View
component can be used to create responsive layouts using flexbox, or add basic styling to nested components. - The
Text
component displays text. On Android and iOS, all text strings needs to be wrapped in one of these. - The
Image
component displays images. They can be referenced using anhttps://
link, localfile://
reference, Base64-encoded string, or image imported as module withrequire
. - The
ScrollView
component is a “visible” container with the scrolling functionality added. In most places, you wouldn’t need scrolling. - The
Button
component is used for “click” or “press” interactions. - The
TextInput
component is used for capturing user input. - Components can be combined into custom components for consistent style and reusability.
Instructions
The previous exercise’s code is provided here if you’d like to experiment with core components!
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.