react-native-waiting-wheel
v1.0.1
Published
A progress wheel to whating for some thing in your application
Downloads
3
Maintainers
Readme
React Native Waiting Wheel
If you have to make your user wait for some time, this will save you!
A progress wheel that can work as a loading as well, make your user wait for something in your application in a better way!
- Checkout the example/ folder for use example.
Features
- Good fit for loading situations
- Good fit for waiting timers like SMS confirmation, or timers.
- Smooth animations
- Highly customizable
- Very lightweight
Installation
Open a Terminal in the project root and run:
npm install react-native-waiting-wheel
OR
yarn add react-native-waiting-wheel
Quick Start
import React from "react";
import { View, Text } from "react-native";
import ProgressWheel from "react-native-waiting-wheel";
const App = () => {
return (
<View
style={{
flex: 1,
alignItems: "center",
justifyContent: "center",
paddingHorizontal: 16
}}
>
<View style={{ alignItems: "center" }}>
<Text style={{ marginBottom: 20 }}>Default with 3000ms</Text>
<ProgressWheel duration={10000} size={50} />
</View>
</View>
);
};
export default App;
Props
size
- integer (Default - 35
)
Sets the size of the wheel.
background
- string (Default - #F3F3F3
)
Sets the background color of the wheel.
progressColor
- string (Default - #BBBBBB
)
Sets the first color of wheel
duration
- integer (Default - 3000
)
Sets the time of the animation.