Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Core Components | Section
React Native Basics

bookCore Components

Свайпніть щоб показати меню

In React Native, everything you see on the screen is built using components.

The two most basic components are:

  • View: used as a container;
  • Text: used to display any text.

You cannot place text directly inside a View. All text must be wrapped inside a Text component.

Example:

import { View, Text } from 'react-native';

export default function App() {
  return (
    <View>
      <Text>Hello, world</Text>
      <Text>This is my first mobile screen</Text>
    </View>
  );
}

Here, View acts like a wrapper, and Text displays content on the screen.

This is the foundation of every layout in React Native.

question mark

Which component is used to display text in React Native?

Виберіть правильну відповідь

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 2

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Секція 1. Розділ 2
some-alt