Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Focus Input Fields #2624

Closed
3 of 6 tasks
rlee1990 opened this issue Dec 3, 2024 · 0 comments
Closed
3 of 6 tasks

Cannot Focus Input Fields #2624

rlee1990 opened this issue Dec 3, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@rlee1990
Copy link

rlee1990 commented Dec 3, 2024

Description

Type 'RefObject<TextInput>' is not assignable to type 'LegacyRef<TextInputProps> | undefined'. Type 'RefObject<TextInput>' is not assignable to type 'RefObject<TextInputProps>'. Type 'TextInput' has no properties in common with type 'TextInputProps'.ts(2322) index.d.ts(303, 9): The expected type comes from property 'ref' which is declared here on type 'IntrinsicAttributes & Omit<IInputFieldProps, "ref"> & RefAttributes<TextInputProps>'

CodeSandbox/Snack link

Steps to reproduce

Create an expo project and add a few input fields. Set the ref to React.useRef<React.ElementRef>(null); and then add it to the inputfield.

gluestack-ui Version

latest

Platform

  • Expo
  • React Native CLI
  • Next
  • Web
  • Android
  • iOS

Other Platform

No response

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants