2.1.0 • Published 1 year ago

react-native-pressable-scale v2.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago

<PressableScale>

Requires react-native-reanimated (v2)

A component for responding to touches using a React Native <TouchableWithoutFeedback>

<PressableScale onPress={onBuyPressed} style={styles.buyButton}>
  <Text>Buy this Product</Text>
</PressableScale>

The following props are supported:

<NativePressableScale>

A supercharged <PressableScale>.

Requires react-native-gesture-handler and react-native-reanimated (v2)

A component for responding to touches using the native TapGestureHandler without ever going over the JS Bridge. Use this component if you want your Pressables to be able to receive touches, respond to touches, show visual animated feedback (scale down/scale up) and dispatch a callback to JS without using the React Native Thread at all. This component will always be pressable, even when the React Native (JS) Thread freezes because of a heavy JS computation.

⚠️ Warning: This does not work in Modals on Android devices. See software-mansion/react-native-gesture-handler issue #139

<NativePressableScale onPress={onBuyPressed} style={styles.buyButton}>
  <Text>Buy this Product</Text>
</NativePressableScale>

The following props are supported:

Also try