-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
TextInput label is breaking in new architecture #4552
Comments
I got the same error in |
Hey @JamesRobert20. Thanks for reporting the issue. Can you provide a reproducible example of this issue? Currently, I'm working on new-arch support, so I can handle this, but I didn't manage to reproduce this issue. |
Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on snack.expo.dev. If it's not possible to repro it on snack.expo.dev, then you can also provide the repro in a GitHub repository. |
Hi, all that you need to do to reproduce this error is render a TextInput component with a label prop for example: import { TextInput } from 'react-native-paper'; export default function SomeRandomPage() { |
Current behaviour
The TextInput component is breaking when you try to use the label prop in the New architecture
How to reproduce?
Create a TextInput component and add the label prop
Preview
What have you tried so far?
I have looked in the package code and found that there are type errors inside the TextInputFlat and InputLabel components
Your Environment
The text was updated successfully, but these errors were encountered: