Closed m-bert closed 4 months ago
Some of CSS styles do not work with Pressables. It happens because style property is applied to outer View and not the button itself
Pressables
style
View
Irrelevant
2.17.1
0.74.1
Android, iOS, Web
None
No response
Yes
Description
Some of CSS styles do not work with
Pressables
. It happens becausestyle
property is applied to outerView
and not the button itselfSteps to reproduce
Test on the following code
```tsx import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Pressable } from 'react-native-gesture-handler'; const onPressCallback = (type: string) => console.log(`${type} pressable onPress`); const onPressInCallback = (type: string) => console.log(`${type} pressable onPressIn`); const onPressOutCallback = (type: string) => console.log(`${type} pressable onPressOut`); export default function App() { return (Snack or a link to a repository
Irrelevant
Gesture Handler version
2.17.1
React Native version
0.74.1
Platforms
Android, iOS, Web
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes