
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-native-animatable-pressable
Advanced tools
Frustrated about the lack of animating Pressable just like TouchableOpacity in React Native? This module aims to fix that.
Since this library relies on react-native-reanimated, first, ensure you have it installed in your project as it's a peer dependency of this library.
npm install react-native-reanimated
Then, install react-native-animatable-pressable:
npm install react-native-animatable-pressable
If it fails, run it with legacy peer deps like so:
npm install react-native-animatable-pressable --legacy-peer-deps
For iOS users, navigate to the ios directory and update your pods:
cd ios
pod update
import AnimatedPressable from 'react-native-animatable-pressable';
<AnimatedPressable onPress={() => console.log('Pressed!')}>
<Text>Press Me</Text>
</AnimatedPressable>
import AnimatedPressable from 'react-native-animatable-pressable';
const App = () => {
return(
<AnimatedPressable
onPress={() => console.log('Pressed!')}
style={{ backgroundColor: 'blue', padding: 10 }}
disableOpacity={true}
zoomLevel={1.1}
disabled={false}
disableZoom={false}
onLongPress{() => console.log('Pressed too long!')}
>
<Text style={{ color: 'tomato' }}>My animated Pressable button</Text>
</AnimatedPressable>
)
}
export default App;
onPress: Function to execute on press.
onLongPress: Function to execute on long press.
style: Style object to apply to the pressable component.
disableOpacity: Boolean to disable opacity animation. Defaults to false.
disableZoom: Boolean to disable zoom (scale) animation. Defaults to false.
zoomLevel: Number specifying the scale factor for the zoom animation. Defaults to 1.02.
disabled: Boolean to disable triggering functions. Defaults to false.
You can do whatever you want with this library. Commercial or non-commercial use.
FAQs
Animated Pressable Component for React Native
We found that react-native-animatable-pressable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.