Skip to content

Commit 6fe5335

Browse files
committed
Fix flow issues
1 parent 2792cfb commit 6fe5335

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

NodeView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ export default class NodeView extends React.PureComponent<Props, State> {
5959
)
6060
}
6161

62-
renderItem = ({item}) => this.renderChildren(item, this.props.level)
62+
renderItem = ({item}: {item: Node}) =>
63+
this.renderChildren(item, this.props.level)
6364

6465
render() {
6566
const rootChildrenName = this.props.getChildrenName(this.state.node)

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default class NestedListView extends React.PureComponent<Props, State> {
8282
: 'items'
8383
}
8484

85-
renderErrorMessage(prop) {
85+
renderErrorMessage(prop: string) {
8686
return (
8787
<View style={styles.errorContainer}>
8888
<Text style={styles.errorText}>prop {prop} has not been passed</Text>

0 commit comments

Comments
 (0)