About 52 results
Open links in new tab
  1. javascript - What's the difference between Pressable and ...

    Feb 13, 2025 · Pressable doesn't add the opacity animation on press, but react native docs have this note at touchableOpacity: "If you're looking for a more extensive and future-proof way to handle …

  2. Pressable styling doesn't work with native-wind - Stack Overflow

    Jan 25, 2024 · I'm using react-native with nativewind library and conditional styling in Pressable doesn't work when it's wrapped in a View with nativewind classnames. So basically removing the className …

  3. Smooth transitions with the new "Pressable" component?

    Nov 3, 2021 · However, while the new Pressable API gives me the ability to change things like style props based on a pressed state easily, there is no smooth/animated transition like there is with the …

  4. reactjs - ripple effect leaking at corners as if Pressable button has a ...

    Jul 23, 2020 · I'm using Pressable for buttons after referring this docs pressable docs Now I want to add ripple effect to the button but it is not working properly. <Pressable android_ripple={{c...

  5. React Native - How to add opacity feedback to Pressable component ...

    Jul 16, 2021 · The new Pressable component is great; I like being able to access new events but, how do you add the opacity feedback the TouchableOpacity component has?

  6. Pressable not working in react-native android - Stack Overflow

    Feb 10, 2021 · Description When a child of a pressable component is pressed (such as an image), the function passed to the onPress prop does not execute on android. Works as expected on iOS. React …

  7. Differences between Pressable and TouchableWithoutFeedback

    Oct 20, 2021 · 11 Pressable and TouchableWithoutFeedback are higher order components to add touch functionality to their children. They have very similar use cases. I guess I can use Pressable …

  8. Change Style on Pressable Click React Native - Stack Overflow

    Jun 25, 2023 · I am trying to create a custom button using pressable in react native but I cant change the style on press. Whenever I press on the pressable and change the style properties they reflect …

  9. How to handle ScrollView inside a Pressable in React-Native?

    Aug 30, 2021 · All credit goes to freddrivett. If your ScrollView is within something that handles touch (Pressable, TouchableWithoutFeedback etc) then you either need to stop the touch event …

  10. Catch Pressable press with styled-components in React Native

    Oct 15, 2020 · Is there a way to pass the pressed property to styled-components? What I have now: import React from 'react'; import { Pressable, Text, View } from 'react-native'; import styled from …