
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-bouncing-ball
Advanced tools
A react-native bouncing ball component for both iOS and Android.
react native component bouncing ball for both iOS and Android. There are two ways to generate balls, <Image/> and <View/>.
Use the <Image/> generate ball

Use the <View/> generate ball

npm i react-native-bouncing-ball --save
Use the <Image/> generate ball
import React, {PureComponent} from 'react';
import {StyleSheet, ImageBackground} from 'react-native';
import BouncingBalls from 'react-native-bouncing-ball'
export default class BouncingBallsComponent extends PureComponent {
render() {
return (
<ImageBackground style={styles.container} source={require('./images/background.jpg')}>
<BouncingBalls
amount={10}
animationDuration={5000}
minSpeed={30}
maxSpeed={200}
minSize={40}
maxSize={100}
imageBall={require('./images/bouncing_ball.png')}
/>
</ImageBackground>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
}
});
Use the <View/> generate ball
import React, {PureComponent} from 'react';
import {StyleSheet, ImageBackground} from 'react-native';
import BouncingBalls from 'react-native-bouncing-ball'
export default class BouncingBallsComponent extends PureComponent {
render() {
return (
<ImageBackground style={styles.container} source={require('./images/background.jpg')}>
<BouncingBalls
amount={10}
animationDuration={5000}
minSpeed={30}
maxSpeed={200}
minSize={40}
maxSize={100}
style={{
backgroundColor: '#CDFFCD'
}}
/>
</ImageBackground>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
}
});
| Props | PropType | Default Value | Description |
|---|---|---|---|
| amount | number | 1 | the number of balls |
| animationDuration | number | 5000 | Every section animation time |
| animationType | func | Easing.linear | Animation type |
| minSpeed | number | 30 | The slowest speed of the ball |
| maxSpeed | number | 200 | The fastest speed of the ball |
| minSize | number | 40 | The largest ball size |
| maxSize | number | 100 | The smallest ball size |
| style | object | null | The style of the ball |
| imageBall | object | null | Choose Image generate ball |
MIT Licence
FAQs
A react-native bouncing ball component for both iOS and Android.
We found that react-native-bouncing-ball 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.