https://github.com/cawfree/react-native-number-ticker-input
📟 A customizable numeric input in the style of a ticker.
https://github.com/cawfree/react-native-number-ticker-input
component field input native number react react-native ticker
Last synced: about 1 month ago
JSON representation
📟 A customizable numeric input in the style of a ticker.
- Host: GitHub
- URL: https://github.com/cawfree/react-native-number-ticker-input
- Owner: cawfree
- License: mit
- Created: 2020-03-23T08:42:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-26T18:24:11.000Z (over 2 years ago)
- Last Synced: 2025-07-03T11:45:11.960Z (3 months ago)
- Topics: component, field, input, native, number, react, react-native, ticker
- Language: JavaScript
- Homepage:
- Size: 2.17 MB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-number-ticker-input
A numeric input in the style of a ticker, which supports [Android](https://developer.android.com/), [iOS](https://developer.apple.com/) and [Web](https://github.com/necolas/react-native-web).
![]()
## Getting Started
Using [`npm`]():
```bash
npm install --save react-native-number-ticker-input
```Using [`yarn`]():
```bash
yarn add react-native-number-ticker-input
```## Usage
The component works very similarly to a [``](https://reactnative.dev/docs/textinput), since it is after all, just an animated wrapper of one!
```javascript
import React, { useState } from "react";
import NumberTickerInput from "react-native-number-ticker-input";export default () => {
const [value, setValue] = useState(0);
return (
);
};
```## Props
Property | Type | Required | Default value | Description
:--- | :--- | :--- | :--- | :---
height|number|no|100| Defines the component height.
value|number|no|0| Defines the current value.
onChange|func|no|() => null| Callback to update the value.
significantDigits|number|no|4| The number of digits to show before the decimal point.
significantContainerStyle|style|no|undefined| The style of the outer container for a significant digit.
significantTickerStyle|style|no|undefined| The style of an individual number ticker for a significant digit.
decimalDigits|number|no|2| The number of decimal digits.
decimalContainerStyle|style|no|undefined| The style of the outer container for a decimal digit.
decimalTickerStyle|style|no|undefined| The style of an individual number ticker for a decimal digit.
DecimalPoint|elementType|no|DecimalPoint|The component to use when rendering the decimal point. This will not be rendered if decimalDigits === 0.## License
[MIT](https://opensource.org/licenses/MIT)