React Native is like React, but it uses native components instead of web components as building blocks. So to understand the basic structure of a React Native app, you need to understand some of the basic React concepts, like JSX, components, state, and props. If you already know React, you still need to learn some React Native specific stuff, like the native components.
We must first build an app that does nothing except say, "Hello, world!"
We define the HelloWorldApp function, a functional component that behaves similarly to React for the Web. This function returns a View component with some styles and aText as its child.
The Text component allows us to render a text, while the View component renders a container. This container has several styles applied; let's analyze what each is doing.
{styles.instructions}>{instructions}:
|