-
-
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
Inconsistent documentation on mandatory textAlign
prop of TextInput
component
#2558
Comments
Couldn't find version numbers for the following packages in the issue:
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3. The versions mentioned in the issue for the following packages differ from the latest versions on npm:
Can you verify that the issue still exists after upgrading to the latest versions of these packages? |
textAlign
of TextInput
componenttextAlign
prop of TextInput
component
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
Can you verify that the issue still exists after upgrading to the latest versions of these packages? |
Yes, since it is a type and documentation related problem. |
Ive been working in my project for weeks and suddenly i get the error that i am missing the textAlign prop. it started around the time i began integrating react-navigation and its theme bottom navigation |
I have the same problem (textAlign props missing) with react-native-paper 4.7.2 but with the 4.7.1 it works. |
Do you also have problem with any |
Any updates on this? |
Does the issue still occur for you in the latest paper version (4.8.1)? |
Yes, it occurs in the latest version 4.8.1 |
Does that happen for other components and props? Could you please to provide some example? |
I'm using react-native-paper 4.7.1 with Typescript. If I update to 4.8.1, Typescript compiler raise an error that TextInput and SearchBar need textAlign property. Setting it to undefined, it compile. |
Which version of |
@types/react-native: 0.63.30 |
I had the same issue and it's gone once I've bumped up |
Yes, it works. |
Agreed. Just updated the types to latest version and now its working |
Since we have two confirmations that upgrading |
Current behaviour
The documentation of TextInput does not specify
textAlign
as a prop of the component, howeverTypeScript
compiler complains about the lack of it if you don't specify it.Expected behaviour
Either it should be dropped as a mandatory property so no compiler error or update documentation to involve
textAlign
property and mark it as mandatory (and also add it to the example).Code sample
What have you tried
Passing either
left
orright
helps obviously.Your Environment
The text was updated successfully, but these errors were encountered: