Skip to content

Commit

Permalink
Adds support for a cb func to be called on value change
Browse files Browse the repository at this point in the history
  • Loading branch information
Anze Vavpetic committed Nov 22, 2019
1 parent 8de9578 commit c030d8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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-formik",
"version": "0.0.2",
"version": "0.0.3",
"description": "Make the most of your React Native forms with Formik",
"main": "index.js",
"type": "index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/withPickerValues/PickerModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class PickerModal extends PureComponent<PropsType> {
onValueChange = (value: any) => {
if (this.props.onChangeText) this.props.onChangeText(value);
if (this.props.onSubmitEditing) this.props.onSubmitEditing();
if (this.props.onChangeCb) this.props.onChangeCb(value);
};

renderPicker = () => {
Expand Down

0 comments on commit c030d8a

Please sign in to comment.