Skip to content

Commit

Permalink
Minor Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bietkul committed Jun 20, 2017
1 parent e18bfcb commit 6391404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name":"react-native-form-builder",
"version":"1.0.3",
"version":"1.0.4",
"description":"Generate Awesome Forms In an easy way",
"main":"src/index.js",
"scripts":{
Expand Down
5 changes: 2 additions & 3 deletions src/formBuilder/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { View } from 'react-native';
import { View, Keyboard } from 'react-native';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import TextInputField from '../fields/textInput';
import PickerField from '../fields/picker';
Expand All @@ -10,7 +10,6 @@ import FormField from '../fields/form';
import baseTheme from '../theme';
import { autoValidate, getInitState, getDefaultValue, getResetValue } from '../utils/methods';

const dismissKeyboard = require('dismissKeyboard');

export default class FormBuilder extends Component {
static propTypes = {
Expand Down Expand Up @@ -57,7 +56,7 @@ export default class FormBuilder extends Component {
&& this[Object.keys(this.state)[index + 1]].textInput) {
this[Object.keys(this.state)[index + 1]].textInput._root.focus();
} else {
dismissKeyboard();
Keyboard.dismiss();
}
}
onValueChange(name, value) {
Expand Down

0 comments on commit 6391404

Please sign in to comment.