-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
TextInput right operand of 'in' is not an object #4294
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
Comments
Hey @nimeshmaharjan1 can You share Your |
It doesn't highlight the TextInput as an error but if I have the TextInput component then the above error is shown |
The same Issue TextInput from react native paper not working |
I'm facing the same issues with Searchbar components using Expo SDK 50.0.2 |
@nimeshmaharjan1 , I was able to fix the problem after following this 👉 solution #756 |
@Aztaro97 sorry I'm a react native noob - how would you apply the fix? don't we need to wait until react-native-paper update their nativewind dependency? |
Could someone please explain why does this fix work? Even if short-circuiting is used, it would return a false instead of undefined (after the solution). But Does react-native not accept false as a value in style array? Why would it fail? |
Current behaviour
Getting this, "Right operand of 'in' is not and object" error after when using the TextInput component from react native paper. If I remove the TextInput component the app works fine. The TextInput from react-native is working though
How to reproduce?
Just a newly created expo project with react native paper and rendering the TextInput component
Preview
Your Environment
| react-native | 0.73.2
| react-native-paper | 5.12.1
| expo sdk | 50.0.1
| react | 18.2.0
The text was updated successfully, but these errors were encountered: