0.1.1 • Published 4 years ago

react-native-dynamic-rate v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

React Native Dynamic Rate

npm version npm Platform - Android and iOS License: MIT styled with prettier

Installation

Add the dependency:

npm i react-native-dynamic-rate

Peer Dependencies

IMPORTANT! You need install them
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",

Usage

Import

import DynamicRate from "react-native-dynamic-rate";

Basic Usage

Rate is depends on the hour you need to calculate your rate depends on the /per hour 3600 rate is 1 plus per second.

<DynamicRate initialValue={150000} rate={3600} />

Configuration - Props

PropertyTypeDefaultDescription
ratenumberdefaultset the increase rate
initialValuenumberdefaultset the initial value
numberFormatstring"tr-TR"you can set your own language/region's number format
customNumberFormatfunctiondefaultif you do not want to use the default number format, you can set it your own
disableNumberFormattingbooleanfalseif you do not want any number formatting, you can simply disable it
disableNumberFormattingbooleanfalseif you do not want any number formatting, you can simply disable it
textStylestyledefaultset your own text style instead of default one
TextComponentcomponentTextset your own custom Text component instead of the default react native's Text component

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Dynamic Rate is available under the MIT license. See the LICENSE file for more info.