1.0.2 • Published 2 years ago

react-native-auto-countdown v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-native-auto-countdown

A React-Native Component for countdown timer."

install like this

npm i react-native-auto-countdown

https://user-images.githubusercontent.com/75023861/179362336-c4db9712-64a2-43b0-b052-1b83ff3cd8a4.mp4

propsdetails
minutegive the minutes you want for countdown (must given prop if nothing to give then just give 0 )
secondgive the seconds you want (must given prop if nothing to give then just give 0 )
hourgive the hours you want (must given prop if nothing to give then just give 0 )
textcolorit will change the color of time
fontsizeit will change the font size of time
fontfamilyit will change the font family of time
autoStartgive this = {true} must given for now. We will update in future.

simple usage with all props

import {StyleSheet, Text, View} from 'react-native';
import React from 'react';
import RnAutoCountDown from 'react-native-auto-countdown';

const App = () => {
  return (
    <View
      style={{
        flex: 1,
        backgroundColor: 'white',
        justifyContent: 'center',
      }}>
      <View style={{alignSelf: 'center'}}>
        <RnAutoCountDown
          hour={1}
          minute={1}
          second={1}
          fontsize={20}
          fontfamily={'Poppins-Regular'}
          textcolor={'blue'}
          autoStart={true}
        />
      </View>
    </View>
  );
};

export default App;

const styles = StyleSheet.create({});

License

MIT

Contact

Email: saurabhsatapathy0@gmail.com LinkedIn: https://www.linkedin.com/in/saurabh-satapathy-692a6a1b9/ GitHub: https://github.com/saurabh190802 Twitter: https://mobile.twitter.com/SaurabhSatapat1