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

Disabled modifier #754

Open
itsyoboieltr opened this issue Jan 20, 2024 · 2 comments
Open

Disabled modifier #754

itsyoboieltr opened this issue Jan 20, 2024 · 2 comments

Comments

@itsyoboieltr
Copy link

Is the :disabled modifier implemented? I could not find anything about it in the docs or anywhere, and I tried using it, and it does not seem to work. Is it planned?

@marklawlor
Copy link
Collaborator

marklawlor commented Feb 13, 2024

Its planned and technically implemented in the latest versions, but <TextArea /> uses enabled={false} instead of the standard disabled prop. I'm not sure how to handle that in a generic nice way yet.

React Native RFC to address the problem: react-native-community/discussions-and-proposals#496

@itsyoboieltr
Copy link
Author

Its planned and technically implemented in the latest versions, but <TextArea /> uses enabled={false} instead of the standard disabled prop. I'm not sure how to handle that in a generic nice way yet.

React Native RFC to address the problem: react-native-community/discussions-and-proposals#496

@marklawlor Is it supposed to work with Pressable? I cannot get it to work. Sample code that does not work on the latest version:

<Pressable className={'disabled:bg-gray-400'} disabled>
  <Text>Submit</Text>
</Pressable>

The pressable does not have a gray background, even though disabled is true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants