Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-native-background-progress
Advanced tools
Let your background handle the progress report
Install the module with:
npm install react-native-background-progress --save
You can find the Expo snack here: https://snack.expo.io/@johan-dev/background-progress
Simply import the component
import BackgroundProgress from 'react-native-background-progress';
Then use as follows
<BackgroundProgress
ref={(ref) => this.bp = ref}
total={5}
backgroundColor="#A0D468"
stepColor="#8CC152"
friction={7}
tension={140}
onAnimationStart={this.onAnimationStart}
onAnimationFinish={this.onAnimationFinish}>
<View style={styles.container}>
<Text style={styles.paragraph}>
{this.renderCurrentStep(this.state.currnetStep)}
</Text>
<Button title="next step" onPress={this.nextStep} />
<Button title="prev step" onPress={this.prevStep} />
</View>
</BackgroundProgress>
nextStep = () => {
this.bp.nextStep();
};
prevStep = () => {
this.bp.previousStep();
};
Prop | Description | Required | Default |
---|---|---|---|
backgroundColor | The main color for the background | true | N/A |
stepColor | The color indicating progress | true | N/A |
containerStyle | Override the container styles | false | N/A |
friction | Controls the friction applied to the animation when a step occurs | false | 15 |
tension | Controls the tensions applied to the animation when a step occurs | false | 140 |
Feel free to do pull requests if a certain feature you want is missing. We accept all PR's that are enhancements to the project.
FAQs
Background progress for react native
We found that react-native-background-progress 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.