Skip to content

Commit a443acc

Browse files
committed
Use react-navigation to see multiple examples
1 parent a68172b commit a443acc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+317
-2195
lines changed

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
example
1+
examples
22
flow-typed
33
node_modules
44
__snapshots__

NodeView.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export default class NodeView extends React.PureComponent<Props, State> {
5656
)
5757
}
5858

59+
renderItem = ({item}) => this.renderChildren(item, this.props.level)
60+
5961
render() {
6062
const rootChildrenName = this.props.getChildrenName(this.state.node)
6163
const rootChildren = this.state.node[rootChildrenName]
@@ -70,7 +72,7 @@ export default class NodeView extends React.PureComponent<Props, State> {
7072
{this.state.node.opened && rootChildren ? (
7173
<FlatList
7274
data={rootChildren}
73-
renderItem={({item}) => this.renderChildren(item, this.props.level)}
75+
renderItem={this.renderItem}
7476
keyExtractor={item => item.id}
7577
/>
7678
) : null}

example/index.js

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)