All Projects → fjmorant → react-native-nested-listview

fjmorant / react-native-nested-listview

Licence: MIT license
A UI component for React Native for representing nested arrays of N levels

Programming Languages

typescript
32286 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-nested-listview

vue-virtualised
Blazing fast scrolling and updating for any amount of list and hierarchical data.
Stars: ✭ 18 (-88.96%)
Mutual labels:  tree, listview, treeview
Graphview
Flutter GraphView is used to display data in graph structures. It can display Tree layout, Directed and Layered graph. Useful for Family Tree, Hierarchy View.
Stars: ✭ 152 (-6.75%)
Mutual labels:  tree, treeview
react-treefold
A renderless tree component for your hierarchical React views
Stars: ✭ 37 (-77.3%)
Mutual labels:  tree, treeview
react-treeview-component
A react tree-component where user can customize the the tree according to their need
Stars: ✭ 18 (-88.96%)
Mutual labels:  react-component, treeview
Vue Finder
📁 A Vue.js component to display hierarchical data (like the MacOS X finder)
Stars: ✭ 87 (-46.63%)
Mutual labels:  tree, treeview
Wmztreeview
类似前端elementUI的树形控件,可自定义节点内容,支持无限极节点,可拖拽增删节点等等,非递归实现
Stars: ✭ 118 (-27.61%)
Mutual labels:  tree, treeview
vuejs-tree
A highly customizable and blazing fast Vue tree component ⚡🌲
Stars: ✭ 310 (+90.18%)
Mutual labels:  tree, treeview
Vue Jstree
A Tree Plugin For Vue2.0+
Stars: ✭ 469 (+187.73%)
Mutual labels:  tree, treeview
android-thinkmap-treeview
Tree View; Mind map; Think map; tree map; custom view; 自定义;关系图;树状图;思维导图;组织机构图;层次图
Stars: ✭ 314 (+92.64%)
Mutual labels:  tree, treeview
comment tree
Render comment tree like facebook comment - reply
Stars: ✭ 37 (-77.3%)
Mutual labels:  tree, treeview
react-tree
Hierarchical tree component for React in Typescript
Stars: ✭ 174 (+6.75%)
Mutual labels:  tree, treeview
Bootstraptable Treeview
bootstrapTable extension of treeView
Stars: ✭ 57 (-65.03%)
Mutual labels:  tree, treeview
Angular Tree Component
A simple yet powerful tree component for Angular (>=2)
Stars: ✭ 1,031 (+532.52%)
Mutual labels:  tree, treeview
imgui
Dear ImGui Addons Branch = plain unmodified dear imgui plus some extra addon.
Stars: ✭ 348 (+113.5%)
Mutual labels:  listview, treeview
React Checkbox Tree
A simple and elegant checkbox tree for React.
Stars: ✭ 477 (+192.64%)
Mutual labels:  tree, treeview
Vuejs Tree
A highly customizable and blazing fast Vue tree component ⚡🌲
Stars: ✭ 211 (+29.45%)
Mutual labels:  tree, treeview
Gijgo
Gijgo - Free Javascript Controls
Stars: ✭ 424 (+160.12%)
Mutual labels:  tree, treeview
Bosket
Collection of tree view components for front-end frameworks. 🌳
Stars: ✭ 457 (+180.37%)
Mutual labels:  tree, treeview
tree-tree
No description or website provided.
Stars: ✭ 15 (-90.8%)
Mutual labels:  tree, treeview
jh-weapp-demo
微信小程序项目- 实现一些常用效果、封装通用组件和工具类
Stars: ✭ 60 (-63.19%)
Mutual labels:  tree, listview

react-native-nested-listview

UI component for React Native that allows to create a listview with N levels of nesting

platforms CircleCI codecov npm github release CodeFactor

Table of contents

  1. Show
  2. Usage
  3. Props
  4. Examples
  5. Roadmap

Show

react-native-nested-listview react-native-nested-listview

Usage

yarn add react-native-nested-listview
import NestedListView, {NestedRow} from 'react-native-nested-listview'

const data = [{title: 'Node 1', items: [{title: 'Node 1.1'}, {title: 'Node 1.2'}]}]

<NestedListView
  data={data}
  getChildrenName={(node) => 'items'}
  onNodePressed={(node) => alert('Selected node')}
  renderNode={(node, level, isLastLevel) => (
    <NestedRow
      level={level}
      style={styles.row}
    >
      <Text>{node.title}</Text>
    </NestedRow>
  )}
/>

Props

NestedListView

Prop Description Type Default
data Array of nested items Array Required
renderNode Takes a node from data and renders it into the NestedlistView. The function receives {node, level, isLastLevel} (see Usage) and must return a React element. Function Required
getChildrenName Function to determine in a node where are the children, by default NestedListView will try to find them in items Function items
onNodePressed Function called when a node is pressed by a user Function Not required
extraData A marker property for telling the list to re-render Boolean Not required
keepOpenedState Prop for keeping the opened state of each node when data passed to the list changes Boolean Not required
initialNumToRender Prop for setting the initial amount of items to render. number Not required

NestedRow

Prop Description Type Default
height Height of the row number 50
children Content of the NestedRow Component Required
level Level where a given node is number Required
style NestedRow container style Style Not required

Examples

You can find examples here.

Version App React Native Library
1.0.0 0.67.1 0.11.1

Roadmap

I have moved the roadmap of this library to this trello board so that it can be easier to add more things and like that it doesn't create issues in GitHub if I need to create a ticket

Roadmap Trello Board

Development

In other to start watch mode and develop the library with the examples project (described above), you need to have installed the following npm packages:

  • npm -g json
  • npm -g wml

And have the library and examples project in the same root folder, example:

  • root
    • react-native-nested-listview
    • react-native-nested-listview-examples

After the previous steps you can then run the following command:

yarn start-watch

and then you can start the examples app as usual:

yarn ios or yarn android

When you finish with watch mode remember to stop it to get back to normal like this:

yarn stop-watch

Invite me a coffee

If you want to invite me for a coffee after enjoying this library or just for fun.

ko-fi

Thanks

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].