These are the core components of React Native:
- View: It is the basic built-in component used to build UI of Mobile apps. The view is similar to the div in HTML. It is a content area where you can display your content.
- States: It is used to control the components. The variable data can be stored in the state. It is mutable means a state can change the value at any time.
- Props: Props are used to pass data to the different components. It is immutable means props cannot change the value. It provides a connection between the container component and a presentation component.
- Style: It is an essential component in the web or mobile, which makes the application attractive. React Native does not require any special language or syntax for styling. It can style the application using the JavaScript object.
- Text: This component displays text in the app. It uses the basic component textInput to take text input from the user.
- ScrollView: It is a scrolling container used to host multiple views. It can be used to render the large list or content in view with a scroll bar.
React Native is a popular framework for building mobile applications using React and JavaScript. The essential components of React Native include:
- View: The basic building block for UI components. Views are used to create the structure and layout of the application.
- Text: Used to display text on the screen. It supports basic styling and formatting.
- Image: Used to display images in the application. Images can be sourced locally or from a network.
- ScrollView: A scrollable container that allows you to display a scrolling list of components.
- ListView/FlatList: Components for efficiently rendering large lists of data. FlatList is the preferred choice for long lists in modern React Native applications.
- TextInput: Enables the user to input text. It supports various keyboard types and can handle text changes.
- StyleSheet: Used for styling React Native components. It resembles CSS, but with some differences.
- ActivityIndicator: A component that displays a loading indicator. It is often used to indicate that some background task is in progress.
- Touchable components (TouchableHighlight, TouchableOpacity, TouchableWithoutFeedback): These components are used to make elements respond to touches or clicks, providing a way to create interactive elements.
- Navigator/NavigationContainer: Used for navigation between different screens in a React Native application. Popular navigation libraries include React Navigation and React Native Navigation.
- AsyncStorage: A simple, asynchronous, persistent, key-value storage system for React Native applications.
- Redux (optional): While not a core component, Redux is commonly used for state management in larger React Native applications.
These components form the core of React Native applications, providing the tools necessary to create user interfaces and handle user interactions. Keep in mind that React Native is an evolving technology, and new components and features may be introduced over time.