We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6bdaf7 commit 80be5ceCopy full SHA for 80be5ce
form.js
@@ -10,7 +10,7 @@ export default class Form extends React.Component {
10
renderChildren(children) {
11
return React.Children.map(children, (child, index) => {
12
if (child.children)
13
- return React.cloneElement(child, this.renderChildren(children));
+ return React.cloneElement(child, this.renderChildren(child.children));
14
if (child.type.name !== 'TextInput') return child;
15
16
return React.cloneElement(child, {
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-native-autofocus",
3
- "version": "0.0.2",
+ "version": "0.0.3",
4
"description": "Move to next input field on enter in a form",
5
"main": "index.js",
6
"scripts": {
0 commit comments