Mobile Development Articles

Page 2 of 156

How to add styling or css to your app using reactnative?

Shilpa S
Shilpa S
Updated on 15-Mar-2026 349 Views

React Native provides two main approaches for styling your components: using the StyleSheet component and inline styles. Both methods allow you to apply CSS-like properties to create visually appealing mobile applications. Using StyleSheet Component The StyleSheet component is the recommended approach for styling in React Native. It provides better performance and code organization compared to inline styles. Import StyleSheet First, import the StyleSheet component from React Native: import { StyleSheet } from 'react-native'; Creating Styles Create your styles using StyleSheet.create() method: const styles = StyleSheet.create({ container: { ...

Read More

What is the FlatList component and how to use it in React Native?

Shilpa S
Shilpa S
Updated on 15-Mar-2026 2K+ Views

FlatList is a high-performance, scrollable list component in React Native that efficiently renders large datasets. It offers header and footer support, multiple column support, comes with vertical/horizontal scrolling, lazy loading, and virtualization for optimal performance. Here are some important features of FlatList: Virtualized rendering for performance optimization Scroll loading and lazy rendering ScrollToIndex support for programmatic scrolling Header and footer component support Multiple column support Cross-platform compatibility Configurable viewability ...

Read More

What is the SectionList component and how to use it in React Native?

Shilpa S
Shilpa S
Updated on 15-Mar-2026 1K+ Views

The SectionList component in React Native provides an efficient way to display data organized in sections with headers. It's perfect for categorized lists like contacts, settings, or grouped items. Key Features Header/Footer support for the entire list Header/Footer support for individual sections Scroll loading and pull-to-refresh functionality Cross-platform compatibility Sticky section headers Basic Syntax import { SectionList } from "react-native"; Important Props ...

Read More

List some benefits of using React Native for building mobile apps?

Shilpa S
Shilpa S
Updated on 15-Mar-2026 216 Views

React Native has revolutionized mobile app development by enabling cross-platform applications with a single codebase. As iOS and Android apps gain popularity, companies seek faster, cost-effective development solutions. React Native addresses this need by allowing developers to build native mobile apps using JavaScript and React principles. Originally developed by Facebook as a hackathon project, React Native emerged from the need for a unified framework that could serve both iOS and Android platforms with a single development team. Built on the ReactJS JavaScript library, it provides a robust foundation for creating mobile user interfaces while maintaining native performance. Let ...

Read More

How to work with Alerts Dialog box in ReactNative?

Shilpa S
Shilpa S
Updated on 15-Mar-2026 998 Views

The Alert component in React Native displays dialog boxes to users with a title, message, and buttons for user interaction. It's essential for getting user confirmation or displaying important information. Syntax Alert.alert(title, message, buttons, options) Parameters To work with Alert component you need to import it first: import { Alert } from 'react-native'; The Alert.alert() function takes four parameters: title (required): The title of the alert dialog message (optional): The message to display buttons (optional): Array ...

Read More

How to load data from a server in React Native?

Shilpa S
Shilpa S
Updated on 15-Mar-2026 1K+ Views

To load data from the server you can make use of the fetch API that is similar to XMLHttpRequest or any other networking APIs. It is very easy to make a request to the server using fetch. Take a look at the following code: fetch('https://jsonplaceholder.typicode.com/posts/1') .then((response) => response.json()) .then((responseJson) => console.log(responseJson)); In above code we are fetching the JSON file https://jsonplaceholder.typicode.com/posts/1 and printing the data to the console. The simplest call to fetch() API takes in one argument i.e the path you want to fetch and it returns a promise with ...

Read More

Write a program to display "Hello World" in react native?

Shilpa S
Shilpa S
Updated on 15-Mar-2026 1K+ Views

Once React Native is installed on your system, you get a default code in App.js. This tutorial shows how to modify it to display "Hello World" on your mobile screen. Default App.js Structure When you create a new React Native project, the default App.js contains the following structure: import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; export default class App extends React.Component { render() { return ( ...

Read More

How to display loading indicator in React Native?

Shilpa S
Shilpa S
Updated on 15-Mar-2026 3K+ Views

Loading indicators are essential UI components that inform users when a request is processing. In React Native, the ActivityIndicator component provides an elegant solution for displaying loading states during API calls, form submissions, or data fetching operations. Import Statement To use the ActivityIndicator, import it from React Native: import { ActivityIndicator } from 'react-native'; Basic Syntax Properties Property Description Type ...

Read More

How to show ProgressBar in ReactNative?

Shilpa S
Shilpa S
Updated on 15-Mar-2026 976 Views

ProgressBar is a way to tell users that the content will be available in sometime. It can best be used when you submit something to the server and wait for the server to respond. To work with the progress bar component install react-native-paper module using npm. The command to install react-native-paper is − npm install --save-dev react-native-paper Basic Syntax The basic component of progress bar is as follows− To work with Progress Bar you need to import it from react-native-paper as follows − import { ProgressBar} ...

Read More

Explain the importance of SafeViewArea in React Native?

Shilpa S
Shilpa S
Updated on 15-Mar-2026 363 Views

The SafeAreaView component in React Native ensures your content displays within the safe boundaries of a device screen. It automatically adds padding to prevent content from being covered by system elements like the status bar, navigation bar, toolbar, and tab bars. While originally designed for iOS devices with notches and home indicators, it's now essential for modern app development across platforms. The Problem Without SafeAreaView When using regular View components, content can render underneath system UI elements, making it partially or completely hidden from users. Example: Text Overlapping Status Bar The following example shows how text ...

Read More
Showing 11–20 of 1,551 articles
« Prev 1 2 3 4 5 156 Next »
Advertisements