Gathering detailed insights and metrics for react-native-animated-multistep
Gathering detailed insights and metrics for react-native-animated-multistep
Gathering detailed insights and metrics for react-native-animated-multistep
Gathering detailed insights and metrics for react-native-animated-multistep
@cascadeui/multistep-loader
react native animated button
react-native-multistep-forms
this a cool animated package for handle multi step screens of react native
multistep-forms-2
this a cool animated package for handle multi step screens of react native
react-native-multistep-ciapetro
this a cool animated package for handle multi step screens of react native
A component for react native, which helps you to deal with multi-step form. with some animations!
npm install react-native-animated-multistep
Typescript
Module System
Node Version
NPM Version
68.6
Supply Chain
98.8
Quality
75.5
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
90 Stars
42 Commits
22 Forks
3 Watchers
1 Branches
3 Contributors
Updated on Nov 04, 2024
Latest Version
1.1.1
Package Id
react-native-animated-multistep@1.1.1
Unpacked Size
2.12 MB
Size
2.08 MB
File Count
5
NPM Version
6.14.4
Node Version
10.19.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
You can install this package with the following command:
yarn add react-native-animated-multistep
or
npm install react-native-animated-multistep
you can also see this example
1import AnimatedMultistep from "react-native-animated-multistep"; 2 3/* Define the steps */ 4 5import Step1 from "./steps/step1"; 6import Step2 from "./steps/step2"; 7import Step3 from "./steps/step3"; 8import Step4 from "./steps/step4"; 9 10const allSteps = [ 11 { name: "step 1", component: Step1 }, 12 { name: "step 2", component: Step2 }, 13 { name: "step 3", component: Step3 }, 14 { name: "step 4", component: Step4 } 15]; 16 17/* Define your class */ 18export default class App extends Component { 19 /* define the method to be called when you go on next step */ 20 21 onNext = () => { 22 console.log("Next"); 23 }; 24 25 /* define the method to be called when you go on back step */ 26 27 onBack = () => { 28 console.log("Back"); 29 }; 30 31 /* define the method to be called when the wizard is finished */ 32 33 finish = finalState => { 34 console.log(finalState); 35 }; 36 37 /* render MultiStep */ 38 render() { 39 return ( 40 <View style={{ flex: 1 }}> 41 <AnimatedMultistep 42 steps={allSteps} 43 onFinish={this.finish} 44 onBack={this.onBack} 45 onNext={this.onNext} 46 comeInOnNext="bounceInUp" 47 OutOnNext="bounceOutDown" 48 comeInOnBack="bounceInDown" 49 OutOnBack="bounceOutUp" 50 /> 51 </View> 52 ); 53 } 54}
1import React, { Component } from "react"; 2import { Image, View, TouchableOpacity, TextInput, Text } from "react-native"; 3 4import styles from "./styles"; 5 6class step1 extends Component { 7 constructor(props) { 8 super(props); 9 this.state = { 10 totalSteps: "", 11 currentStep: "" 12 }; 13 } 14 15 static getDerivedStateFromProps = props => { 16 const { getTotalSteps, getCurrentStep } = props; 17 return { 18 totalSteps: getTotalSteps(), 19 currentStep: getCurrentStep() 20 }; 21 }; 22 23 nextStep = () => { 24 const { next, saveState } = this.props; 25 // Save state for use in other steps 26 saveState({ name: "samad" }); 27 28 // Go to next step 29 next(); 30 }; 31 32 goBack() { 33 const { back } = this.props; 34 // Go to previous step 35 back(); 36 } 37 38 render() { 39 const { currentStep, totalSteps } = this.state; 40 return ( 41 <View style={[styles.container, styles.step1]}> 42 <View> 43 <Text 44 style={styles.currentStepText} 45 >{`Step ${currentStep} of ${totalSteps}`}</Text> 46 </View> 47 <TextInput 48 style={styles.input} 49 onChangeText={text => this.setState({ text })} 50 value={this.state.text} 51 placeholder={"First Name"} 52 placeholderTextColor="#fff" 53 /> 54 <TextInput 55 style={styles.input} 56 onChangeText={text => this.setState({ text })} 57 value={this.state.text} 58 placeholder={"Last Name"} 59 placeholderTextColor="#fff" 60 /> 61 <View style={styles.btnContainer}> 62 <TouchableOpacity onPress={this.nextStep} style={styles.btnStyle}> 63 <Image 64 source={require("../assets/icons/arrow.png")} 65 style={styles.btnImage} 66 resizeMode="cover" 67 /> 68 </TouchableOpacity> 69 </View> 70 </View> 71 ); 72 } 73} 74 75export default step1;
Use this method to save state
Use this method to reset state
Use this method to get all the values saved with saveState so far. Retuns an object
Use this method to go to next step in the app.
Use this method to go to previos step in the app.
Use this method to get current step.
Use this method to get total steps.
Props | Type | Notes | Required |
---|---|---|---|
steps | Array | array containing steps | ✔️ |
onFinish | function | a function, which will run when all steps are finish | ❌ |
onNext | function | a function, which will run when you go on next step | ❌ |
onBack | function | a function, which will run when you go on back step | ❌ |
comeInOnNext | String | define you animation type when the component comes in on next, default is fadeInLeft | ❌ |
OutOnNext | String | define you animation type when the component goes out on next, default is fadeOutRight | ❌ |
comeInOnBack | String | define you animation type when the component comes in on back, default is fadeInRight | ❌ |
OutOnBack | String | define you animation type when the component goes out on next, default is fadeOutLeft | ❌ |
duration | number | define you animation duration duration | ❌ |
defaultState | Object | define your default state to use across the steps, default is empty | ❌ |
you can add more animation and set-up animations by your own, check react-native-animatable for aminations.
Method Name | Arguments | Notes |
---|---|---|
next() | none | use this method to jump on next step |
back() | none | use this method to go back on previous step |
saveState() | Object | use this method to save your state, in order to get in other steps |
resetState() | none | use this method to for reset state |
getState() | none | use this method to get you saved state by saveState() method |
getCurrentStep() | none | use this method to get current step |
getTotalSteps() | none | use this method to get total steps |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 2/25 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More