-
-
Notifications
You must be signed in to change notification settings - Fork 371
Pressable style callback function and pressed state not working when I installed nativewind 4.0.36 #847
Copy link
Copy link
Closed
Labels
issue-wipe-pre-v4If your issue persists in v4, open a new issue & reference this one in the description.If your issue persists in v4, open a new issue & reference this one in the description.
Description
Describe the bug
When using Pressable component in React Native, sometimes I use inline styles. In Pressable style prop, you can put a callback function to get the pressed state.
Upon installing nativewind, I noticed that the callback function is not working, even it will not put the rest of the inline styles you will put in callback funciton
To Reproduce
Steps to reproduce the behavior:
- Clone https://github.com/glncy/IssuesExpoApp
- Switch to branch bug/pressable-nativewind
- Install dependencies
yarn install - Run the app
yarn run:[ios|android]ex.yarn run:ios - The app will redirect to Screen
- When you press the
Press Mebutton, it doesn't change. Also it doesn't apply the primary inline styles
Expected behavior
Pressable style callback funciton and pressed state should be working when using inline styles
Branch without Nativewind 4.0.36: bug/pressable-no-nativewind
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
issue-wipe-pre-v4If your issue persists in v4, open a new issue & reference this one in the description.If your issue persists in v4, open a new issue & reference this one in the description.