Skip to content

Commit 31371aa

Browse files
committed
Added new prop in Readme file
1 parent 908612e commit 31371aa

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,14 @@ const data = [{title: 'Node 1', items: [{title: 'Node 1.1'}, {title: 'Node 1.2'}
5252

5353
### NestedListView
5454

55-
| Prop | Description | Type | Default |
56-
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- | ------------ |
57-
| **`data`** | Array of nested items | Array | **Required** |
58-
| **`renderNode`** | Takes a node from data and renders it into the NestedlistView. The function receives `{node, level}` (see [Usage](#usage)) and must return a React element. | Function | **Required** |
59-
| **`getChildrenName`** | Function to determine in a node where are the children, by default NestedListView will try to find them in **items** | Function | **items** |
60-
| **`onNodePressed`** | Function called when a node is pressed by a user | Function | Not required |
61-
| **`extraData`** | A marker property for telling the list to re-render | Object or Array | Not required |
55+
| Prop | Description | Type | Default |
56+
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------ |
57+
| **`data`** | Array of nested items | Array | **Required** |
58+
| **`renderNode`** | Takes a node from data and renders it into the NestedlistView. The function receives `{node, level}` (see [Usage](#usage)) and must return a React element. | Function | **Required** |
59+
| **`getChildrenName`** | Function to determine in a node where are the children, by default NestedListView will try to find them in **items** | Function | **items** |
60+
| **`onNodePressed`** | Function called when a node is pressed by a user | Function | Not required |
61+
| **`extraData`** | A marker property for telling the list to re-render | Boolean | Not required |
62+
| **`keepOpenedState`** | Prop for keeping the opened state of each node when data passed to the list changes | Boolean | Not required |
6263

6364
### NestedRow
6465

@@ -73,12 +74,12 @@ const data = [{title: 'Node 1', items: [{title: 'Node 1.1'}, {title: 'Node 1.2'}
7374

7475
You can find examples [here](https://github.com/fjmorant/react-native-nested-listview-examples).
7576

76-
| React Native | Library |
77-
| -------------- | -------- |
78-
| 0.61.4 | 0.8.0 |
77+
| React Native | Library |
78+
| ------------ | ------- |
79+
| 0.61.4 | 0.8.0 |
7980

8081
## Roadmap
8182

82-
- Autoscrolling optionally
83-
- Expand/contract nodes programatically
84-
- Support animations
83+
- Autoscrolling optionally
84+
- Expand/contract nodes programatically
85+
- Support animations

0 commit comments

Comments
 (0)