View is the most common element in React Native. You can consider it as an equivalent of the div element used in web development.
Let us now see a few common use cases.
When you need to wrap your elements inside the container, you can use View as a container element.
When you want to style different elements, you can place them inside View since it supports style property, flexbox etc.
When you want to nest more elements inside the parent element, both parent and child can be View. It can have as many children as you want.
View supports synthetic touch events.
Posted In: React