Skip to content

Commit 80be5ce

Browse files
committed
fix variable
1 parent e6bdaf7 commit 80be5ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default class Form extends React.Component {
1010
renderChildren(children) {
1111
return React.Children.map(children, (child, index) => {
1212
if (child.children)
13-
return React.cloneElement(child, this.renderChildren(children));
13+
return React.cloneElement(child, this.renderChildren(child.children));
1414
if (child.type.name !== 'TextInput') return child;
1515

1616
return React.cloneElement(child, {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-autofocus",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "Move to next input field on enter in a form",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)