Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,194,808 members, 7,956,065 topics. Date: Sunday, 22 September 2024 at 11:30 PM

React Native Show Message For Empty Flatlist - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / React Native Show Message For Empty Flatlist (788 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)

Switching From Whatsapp To Whatsapp Business / Learn Programming For FREE: No Stupid Whatsapp Scam Or Whatever / Free Css Masterclass For Beginners

(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. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.