Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-stepper-ui

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-stepper-ui - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

example/Example1.tsx

2

package.json
{
"name": "react-native-stepper-ui",
"version": "0.0.6",
"version": "0.0.7",
"description": "Stepper Component for React Native",

@@ -5,0 +5,0 @@ "main": "index.tsx",

@@ -43,2 +43,36 @@ # react-native-stepper-ui

```javascript
import React, { useState } from "react";
import Stepper from "react-native-stepper-ui";
import { View, Alert, Text } from "react-native";
const MyComponent = (props) => {
return (
<View>
<Text>{props.title}</Text>
</View>
);
};
const content = [
<MyComponent title="Component 1" />,
<MyComponent title="Component 2" />,
<MyComponent title="Component 3" />,
];
const App = () => {
const [active, setActive] = useState(0);
return (
<View style={{ marginVertical: 80, marginHorizontal: 20 }}>
<Stepper
active={active}
content={content}
onNext={() => setActive((p) => p + 1)}
onBack={() => setActive((p) => p - 1)}
onFinish={() => Alert.alert("Finish")}
/>
</View>
);
};
export default App;
```
## Props

@@ -45,0 +79,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc