Exploring React Native components and APIs
The main modules and components will be discussed in detail in each new chapter, but for now, let's familiarize ourselves with them. A number of core components are available in the React Native framework for use in the app.
Almost all apps use at least one of these components. These are the fundamental building blocks of React Native apps:
- View: The main brick of any app. This is the equivalent of
<div>
, and on mobiles, it is represented asUIView
andandroid.view
. Any<View/>
component can nest inside another<View/>
component and can have zero or many children of any type. - Text: This is a React component for displaying text. As with the View,
<Text/>
supports nesting, styling, and touch handling. - Image: This displays images from a variety of sources, such as network images, static resources, temporary local images, and images from the camera roll.
- TextInput: This allows users to input...