Views are the most basic building block of React Native apps. The
View is an abstraction layer on top of the target platform's native equivalent:
- For iOS -
- For Android -
- For Web -
Views are primarily used for styling and layout of children elements. Let's look at a few of the styles we can apply to views. The example below contains two
Views: the outer view which specifies the alignment of the content contained within, and the inner view which draws a blue square.
Want to learn React Native in-depth?