redux-form
Version:
A higher order component decorator for forms using Redux and React
37 lines (34 loc) • 658 B
JavaScript
import React from 'react';
import {connect} from 'react-redux';
import createAll from './createAll';
const isNative =
typeof window !== 'undefined' &&
window.navigator &&
window.navigator.product &&
window.navigator.product === 'ReactNative';
export const {
actionTypes,
addArrayValue,
blur,
change,
changeWithKey,
destroy,
focus,
reducer,
reduxForm,
removeArrayValue,
getValues,
initialize,
initializeWithKey,
propTypes,
reset,
startAsyncValidation,
startSubmit,
stopAsyncValidation,
stopSubmit,
swapArrayValues,
touch,
touchWithKey,
untouch,
untouchWithKey
} = createAll(isNative, React, connect);