Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,181 members, 7,818,566 topics. Date: Sunday, 05 May 2024 at 06:57 PM

React Native Show Message For Empty Flatlist - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / React Native Show Message For Empty Flatlist (765 Views)

Fetch Data From An API And Display In Flatlist In React Native / React Native Simple Flatlist Component Android Example / Show Image From HTTP URL In React Native (2) (3) (4)

(1) (Reply)

React Native Show Message For Empty Flatlist by skptricks: 8:21am On Nov 12, 2018
Post Link : React Native Show Message for empty FlatList

This tutorial explains how to display empty message "No Data Available" in FlatList view in react native application, when there is not data present in FlatList data source object. Lets consider the scenarios where we have to load bulk data in FlatList view using server side rendering, in that case we need provide appropriate message to user for the request data and their corresponding response. Generally we are come across with below scenarios :
When data is available, then it will display the data in FlatList view using renderItem prop.
When data is not available, then it will display the error message "No Data Available" to user.

React Native Show Message for empty FlatList

[img]https://3.bp..com/-Fwkielx1ej0/W-kZoPUrI9I/AAAAAAAACIA/TsTTW4PNaqQ0UKB5vfBjadPKY2iOgUpMgCLcBGAs/s640/empty.png[/img]

(1) (Reply)

I Want To Learn Programming Language Which IT Firm Can I Subscribe To In Abuja? / I Need I Fully Functional MMM 2017 Script / How Can I Make The Pictures Show?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.