-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
1. I try running on android and it doesn't work
import React, {useState} from 'react';
import {View, Text} from 'react-native';
import NumberPlease from 'react-native-number-please';
const ItsYourBirthday = () => {
const initialBirthday = [
{id: 'day', value: 16},
{id: 'month', value: 4},
{id: 'year', value: 1970},
];
const [birthday, setBirtday] = useState(initialBirthday);
const date = [
{id: 'day', label: '', min: 0, max: 31},
{id: 'month', label: '', min: 0, max: 12},
{
id: 'year', label: '', min: 1900, max: new Date().getFullYear(),
}
]
return (
<View style={{marginTop : 120}}>
<Text>My birthday</Text>
<NumberPlease
digits={date}
values={birthday}
onChange={(values) => setBirtday(values)}
/>
</View>
);
};
export default ItsYourBirthday
Package.json :
"react": "16.13.1",
"react-native": "0.63.3",
"react-native-number-please": "^1.0.5",
2. React native picker has moved to react-native-picker. I think you should switch to that library.
- Thank you very much. Wish your library grows
alexk984, mitesh-db, DieTime and alwex
Metadata
Metadata
Assignees
Labels
No labels