- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Can't add form to project. It is listed in the demo app but I cant find it in the docs neither can I add this to my project.
To Reproduce
Steps to reproduce the behavior:
- init the project with: npx @react-native-reusables/cli@latest init
- try to add the form via: npx @react-native-reusables/cli@latest add form
- command fails
Expected behavior
the command adds all the stuff needed for the form
Platform (please complete the following information):
Tested with:
- Windows 11
- npm v22.14.0
Additional context
I didn't found any information if this is just not (yet) supported or something else.
I am happy to contribute changes if there is just some stuff missing that need to be done. Please let me know!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
Dillonpw commentedon Mar 28, 2025
There is no form component currently in the rnr docs from what I can see. Not sure where the teams stands but it may be something they are interested in doing at some point.
caioedut commentedon Apr 1, 2025
Ref https://github.com/mrzachnugent/react-native-reusables/blob/main/apps/showcase/app/form.tsx
zophiana commentedon Apr 1, 2025
Yes this is what I meant, it's also listed in the demo, here: https://rnr-showcase.vercel.app/form
Ammar-theScorpion commentedon Apr 3, 2025
what error message do you get?
Have you tried running the command in administrator mode using cmd?
zophiana commentedon Apr 4, 2025
Those:
or
I would be scared if I would have to run this as root tbh. I was able to add the button, label or input components without root privileges, so I don't think this is the issue.
phix-o commentedon Apr 19, 2025
@zophiana From what I can see, the
form
component was deprecated: #104.IMO, this would be a nice (re)addition to the project. I don't know why it was deprecated, someone who knows could chime in, but I'd be happy to work on it.
Comment of interest:
#104 (Comment)
zophiana commentedon Apr 21, 2025
Thanks, yeah I think the form component also used some deprecated components. So those probably also need to be brought back
phix-o commentedon Apr 24, 2025
I was able to get it to work in a project I'm working and followed a similar API to shadcn-ui's Form. I haven't thoroughly tested it yet, maybe some edge cases exists, but for what I was using it for it works.
EDIT
Seems like my solution would be out of the projects scope as it relies on third party packages 😬
mrzachnugent commentedon Aug 22, 2025
As the
form
was deprecated, it is now removed from the project. @gabimoncha is working on a form component that uses the React Native Reusables registry.gabimoncha commentedon Aug 24, 2025
🫡 for those that cannot wait until September, I have a pre alpha version here
https://github.com/gabimoncha/rnr-forms