Releases: web-ridge/react-native-use-form
Releases · web-ridge/react-native-use-form
Release 0.10.2
Release 0.10.1
Release 0.10.0
Release 0.9.0
0.9.0 (2021-12-03)
Breaking change
<TextInput
mode="outlined"
{...fh.text('postalCode', {
enhance: (v) => {
-- return (v || '').toUpperCase()
++ return { value: (v || '').toUpperCase() };
},
})}
label="Postalcode"
error={hasError('postalCode')}
/>
Features
- add support for enhancing all form values in enhance function BREAKING-CHANGE (0176ea3)
You can now edit the whole formValues in the enhance
<TextInput
mode="outlined"
{...fh.text('postalCode', {
enhance: (v, oldValues) => {
return {
newValues: { ...oldValues, postalChangeChangedCount: oldValues.postalChangeChangedCount++ },
value: (v || '').toUpperCase() },
},
})}
label="Postalcode"
error={hasError('postalCode')}
/>