Skip to content

Releases: web-ridge/react-native-use-form

Release 0.10.2

16 Feb 21:45
Compare
Choose a tag to compare

0.10.2 (2022-02-16)

Bug Fixes

  • optimizing + fix for typing fast / wrong values in onChange (d8c3272)

Release 0.10.1

24 Dec 14:46
Compare
Choose a tag to compare

0.10.1 (2021-12-24)

Bug Fixes

  • use default empty value in inputs to prevent warnings uncontrolled -> controlled (3ceceb5)

Release 0.10.0

07 Dec 20:57
Compare
Choose a tag to compare

0.10.0 (2021-12-07)

Features

Release 0.9.0

03 Dec 13:39
Compare
Choose a tag to compare

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')}
        />

Release 0.8.0

03 Dec 13:03
Compare
Choose a tag to compare

0.8.0 (2021-12-03)

Features

  • add previous values in enhance (c0d4522)

Release 0.7.0

03 Dec 12:56
Compare
Choose a tag to compare

0.7.0 (2021-12-03)

Features

  • add enhance function to edit form state based on change of other values (f894649)

Release 0.6.3

19 Nov 10:56
Compare
Choose a tag to compare

0.6.3 (2021-11-19)

Bug Fixes

  • export some types (8072ff0)
  • export some types (2ada73e)
  • improve deep nested error check onSubmit (4c4b588)

Release 0.6.1

19 Nov 10:07
Compare
Choose a tag to compare

0.6.1 (2021-11-19)

Bug Fixes

  • make touched also hit on onChange value & add focusedOnce (a5c171c)

Release 0.6.0

16 Nov 19:55
Compare
Choose a tag to compare

0.6.0 (2021-11-16)

Features

  • add extra handlers to raw input (f60dd14)

Release 0.5.1

16 Nov 19:46
Compare
Choose a tag to compare

0.5.1 (2021-11-16)