The most important core components in React Native are as follows-
React Native components | Android native view | IOS native View | Web Browser | Description |
---|---|---|---|---|
#View- | When the app is shown in an Android device, the When the app is shown in an IOS device< The View> component will change to | When seen in a web browser, the | is the core container that supports flexbox layout. It also manages touch handling. |
|
Text - | When the app appears on an Android device the When the application is seen in an IOS device, the | When seen in a web browser, the | used to display text to the user. It also handles styles and touch events. | |
Image - | When an application sees the When the app is seen in an IOS device, the | When viewed in a web browser, the | used to display the image. | Scrollview - | When the application is seen in an Android device, the When the application is seen in an IOS device, the | that has the component and the view's scroll container. |
When the application is displayed in the Android device, |
When the application is displayed in an IOS device, the |
When the |
An input element in which the user can enter text |
To use Text, View, Image, ScrollView, TextInput you need to start from react -native import components, as shown below-
import { View, Text, Image, ScrollView, TextInput } from 'react-native';
View component is mainly used to save text, buttons, pictures, etc. The usage of this component is as follows- p>
<View> <Text style={{ padding:"10%", color:"red" }}>Inside View Container</Text> <Image source={{ uri: 'https://www.tutorialspoint.com/react_native/images/logo.png', }} style={{ width: 311, height: 91 }} /> </View>
There are text and image components in it. The ScrollView component behaves like a parent component handling View, Text, Image, Button, and other React Native components.
import React from 'react'; import { View, Text, Image, ScrollView, TextInput } from 'react-native'; const App = () => { return (); } export default App; Welcome to TutorialsPoints! Inside View Container
Output
The above is the detailed content of List the important core components of React Native. For more information, please follow other related articles on the PHP Chinese website!