React Native Number Please 🙏🏽
Generate react-native pickers with range numbers.
Example
Installing
Add the package to your project
yarn add react-native-number-please npm install -S react-native-number-please
Usage
;; ; const OrderPizza = { const initialValues = id: "pizza" value: 3 ; const pizzas setPizzas = ; const pizzaNumbers = id: "pizza" label: "🍕" min: 0 max: 99 ; return <View> <Text>I would like</Text> <NumberPlease digits=pizzaNumbers values=pizzas onChange= /> </View> ;};
;; ; const ItsYourBirthday = { const initialBirthday = id: "day" value: 16 id: "month" value: 4 id: "year" value: 1970 ; const birthday setBirtday = ; const date = id: "day" label: "" min: 0 max: 31 id: "month" label: "" min: 0 max: 12 id: "year" label: "" min: 1900 max: return <View> <Text>My birthday</Text> <NumberPlease digits=date values=birthday onChange= /> </View> ;};
License
This project is licensed under the MIT License - see the LICENSE.md file for details