BearStudio/formiz

useForm is not working as expected.

Closed this issue · 2 comments

Describe the bug

When I use useForm in an Expo managed project, I receive an error related to the 'os' module. I can only use the project correctly when I add the 'os' library to my projects

To Reproduce

  1. Install formiz to expo managed app
  2. import & use useForm

Expected behavior

Being able to use formiz without installing an additional module

Screenshots

Screenshot 2024-01-23 at 10 35 08
Screenshot 2024-01-23 at 09 29 30

Smartphone (please complete the following information)

  • Device: iPhone 15 Pro
  • OS: IOS17.2

Thanks a lot for your issue, it is indeed a bug coming from a Formiz peer dependency. I'm looking to replace that dependency.

Hey @aylonmuramatsu thanks again for raising this issue. You can upgrade Formiz to 2.2.2 and remove the os dependency, and it should work. Let us know if there are others issues.