![]() onEndReached is called when you scroll to the bottom of the list.ItemSeparatorComponent is helpful when you want to show any view as a separator of every item in the SectionList.Let’s zoom in briefly on a couple of useful SectionList props you should know: ItemSeparatorComponent and onEnReached. Open your app.js file and add the following data (for the purpose of this demonstration): const newTaskData = [ from 'react-native' Add SectionList to your React Native appīefore we can add SectionList to our React Native app, we need some data to show in our app. Now open this project in your code editor. This will create new boilerplate code for your React Native app. Open your CMD or terminal and type the following command: create-react-native-app You can create a React Native app using the Create React Native App CLI tool. To show how SectionList works, we’ll create a to-do list app that shows new tasks and completed tasks. ![]() It is a performant interface for rendering sectioned lists with useful features, including scroll loading, pull to refresh, section separator support, etc. What is SectionList?Īs the name suggests, SectionList enables you to show a sectioned list in your UI. In this tutorial, we’ll demonstrate how to use SectionList to render large, sectioned lists in React Native applications. React Native SectionList tutorial with examples I love to explore new technologies and update my skills. I have experience working with various technologies including React, React Native, WordPress, Node.js, Express.js, Raspberry Pi, Python, REST APIs, and GraphQL. ![]() Akshay Rana Follow I'm a self-taught, full-time programmer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |