Skip to content

Not working android #151

@daihieptn97

Description

@daihieptn97

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions