Skip to content

Commit d3d60bb

Browse files
committed
fix for reduxform Fields
1 parent 2f1e120 commit d3d60bb

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

demo/src/keyBoardSpacer/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/* eslint import/no-extraneous-dependencies:"off" */
2+
/* eslint import/no-unresolved:"off" */
3+
/* eslint import/extensions:"off" */
4+
15
import React, { Component } from 'react';
26
import {
37
Platform,
@@ -85,7 +89,7 @@ const KeyBoardSpacer = passProps => PassChild => class KeyBoardSpacerInner exten
8589
}
8690

8791
render() {
88-
for (let i = 0, l = passProps.numbers; i < l; i++) {
92+
for (let i = this.ids.length, l = passProps.numbers; i < l; i++) {
8993
const ref = (_ref) => { this.ids[i].ref = _ref; };
9094
this.ids.push(
9195
(arg, option) => ({

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const KeyBoardSpacer = passProps => PassChild => class KeyBoardSpacerInner exten
8989
}
9090

9191
render() {
92-
for (let i = 0, l = passProps.numbers; i < l; i++) {
92+
for (let i = this.ids.length, l = passProps.numbers; i < l; i++) {
9393
const ref = (_ref) => { this.ids[i].ref = _ref; };
9494
this.ids.push(
9595
(arg, option) => ({

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-flex-keyboard-spacer",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "react-native-keyboard-spacer",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)