gluestack-ui
gluestack-ui copied to clipboard
Textarea with wrong ref types
Description
Hi! I'm going on with my refactor from Native Base to Gluestack UI, but I have some problem with Textarea ref and Typescript. Textarea ref type was RefObject<HTMLInputElement> and it works perfectly in Native Base. Also if you search for documentation it's the right type. But Textarea nor TexareaInput components let me use that and has wrong types or elements and ref.current.disabled or ref.current.blur() cannot be used.
CodeSandbox/Snack link
Is not necessary, only include a textarea and try to disabled or focus it via ref.
Steps to reproduce
- Go to '...'
- Click on '...'
- Scroll down to '...'
- See error
gluestack-ui Version
v2
Platform
- [x] Expo
- [ ] React Native CLI
- [ ] Next
- [x] Web
- [x] Android
- [x] iOS
Other Platform
No response
Additional Information
@gluestack-ui/alert": "^0.1.16", "@gluestack-ui/button": "^1.0.14", "@gluestack-ui/form-control": "^0.1.19", "@gluestack-ui/icon": "^0.1.27", "@gluestack-ui/input": "^0.1.38", "@gluestack-ui/modal": "^0.1.41", "@gluestack-ui/nativewind-utils": "^1.0.26", "@gluestack-ui/overlay": "^0.1.22", "@gluestack-ui/textarea": "^0.1.25", "@gluestack-ui/toast": "^1.0.9",