react-native-formik
Advanced tools
+4
-0
@@ -79,2 +79,6 @@ import * as React from 'react'; | ||
| export function handleTextInput<Props>( | ||
| WrappedComponent: React.ComponentType<Props> | ||
| ): React.ComponentClass<Props & makeInputGreatAgainProps>; | ||
| export default makeInputGreatAgain; |
+1
-1
| { | ||
| "name": "react-native-formik", | ||
| "version": "1.7.0", | ||
| "version": "1.7.1", | ||
| "description": "Make the most of your React Native forms with Formik", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
| import React from "react"; | ||
| import PropTypes from "prop-types"; | ||
| import { isArray } from "lodash"; | ||
| import withFormik from "./withFormik"; | ||
@@ -13,3 +12,3 @@ | ||
| const getInputs = children => | ||
| (isArray(children) ? children : [children]).reduce((partialInputs, child) => { | ||
| React.Children.toArray(children).reduce((partialInputs, child) => { | ||
| if (child && child.props && child.props.children) { | ||
@@ -16,0 +15,0 @@ return partialInputs.concat(getInputs(child.props.children)); |
2432507
01038
0.19%