

This container has several styles applied, let's analyze what each one is doing.

The Text component allows us to render a text, while the View component renders a container. This function returns a View component with some styles and a Text as its child. Then we define the HelloWorldApp function, which is a functional component and behaves in the same way as in React for the web. On line 2, we import the Text and View components from react-native.First of all, we need to import React to be able to use JSX, which will then be transformed to the native components of each platform.You can also paste it into your App.js file to create a real app on your local machine. If you are feeling curious, you can play around with sample code directly in the web simulators.
