
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
rn-bounceable
Advanced tools
Native bounceable effect for any React Native component. Built with Reanimated. Compatible with Expo.
> yarn add rn-bounceable
Make sure you have react-native-reanimated and react-native-gesture-handler installed in your project.
import {Image} from 'react-native';
import {Bounceable} from 'rn-bounceable';
class Screen = () => {
return (
<Bounceable>
<Image source={{uri: 'https://static.expo.dev/static/brand/square-512x512.png'}} />
</Bounceable>
)
}
Since rn-bounceable uses Reanimated 2, we need its babel plugin to be applied. Expo Web doesn't transpile modules by default, so we'll need to tell it to transpile the library.
@expo/webpack-config:yarn add -D @expo/webpack-config
webpack.config.js in the root of your project:const createExpoWebpackConfigAsync = require('@expo/webpack-config')
module.exports = async function (env, argv) {
const config = await createExpoWebpackConfigAsync(
{
...env,
babel: { dangerouslyAddModulePathsToTranspile: ['rn-bounceable'] },
},
argv
)
return config
}
Don't forget to add webpack.config.js into tsconfig.json under exclude section, if needed.
type BounceableProps = {
onPress?: () => void;
onLongPress?: () => void;
disabled?: boolean; // default: false
noBounce?: boolean; // default: false
immediatePress?: boolean; // default: true
delayLongPress?: number; // default: 800
activeScale?: number; // default: 0.95
delayActiveScale?: number; // default: 0
springConfig?: Animated.WithSpringConfig; // default: { damping: 10, mass: 1, stiffness: 300 }
contentContainerStyle?: StyleProp<ViewStyle>;
};
Examples could be found in expo-example folder or in expo-starter, rn-starter and rnn-starter.
See it with Expo Web or Expo Go.
This library was bootstrapped from kanzitelli/if-component.
https://user-images.githubusercontent.com/4402166/142771470-a1210a92-9a74-4205-b023-b8ac2403dd84.MP4
This project is MIT licensed
FAQs
Native bounceable effect for any React Native component. Built with Reanimated. Compatible with Expo.
The npm package rn-bounceable receives a total of 217 weekly downloads. As such, rn-bounceable popularity was classified as not popular.
We found that rn-bounceable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.