gluestack-ui
gluestack-ui copied to clipboard
React native Text area is not working as expected with event.preventDefault
Description
event.preventDefault() is not working.I tried in react native textinput to textarea also. cursor still goes to nextline .Is there any way I can prevent this. I want the retur type as "Enter" only and with multiline true.
CodeSandbox/Snack link
No response
Steps to reproduce
- I want to restrict the enter button to perform its action .But I want the enter button since I am using multiline text
- I tried to add condition in onChangeText also. But the cursor goes down and then comes back
- This is happening in react native Textinput also.
gluestack-ui Version
3.3.1
Platform
- [ ] Expo
- [X] React Native CLI
- [ ] Next
- [ ] Web
- [ ] Android
- [ ] iOS
Other Platform
Nil
Additional Information
https://github.com/gluestack/gluestack-ui/assets/93109946/8bf32d80-e108-4ad7-9044-6298e6e60fc4
Hey @AmmuRamasubramanian, Can you provide a repo or snack with this?