April 2020
Intermediate to advanced
716 pages
18h 55m
English
The View component is the most fundamental component for building a user interface in React Native, and it maps directly to the native view equivalent on whatever platform React Native is running on. In our case, since the application will render in the browser, it will map to a <div> element in the browser. The View component can be added as follows:
<View> <Text>Hello</Text></View>
The View component is typically used as a container for other components; it can be nested inside other views and can have zero-to-many children of any type.
We will use View components to hold the game world view and add 3D object entities and text to the game. Next, we will look at the Text component, which will allow us to add text to the view.
Read now
Unlock full access