Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working android #151

Open
daihieptn97 opened this issue Oct 24, 2020 · 6 comments
Open

Not working android #151

daihieptn97 opened this issue Oct 24, 2020 · 6 comments

Comments

@daihieptn97
Copy link

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
@thebiltheory
Copy link
Owner

Thanks for letting me know.
I'll update the project!

@develiasdaniel
Copy link

Me too not work on android devices

@fantasyado
Copy link

@thebiltheory hi, this lib works well on iOS, can you make it work on Android, please ...

@thebiltheory
Copy link
Owner

@fantasyado @develiasdaniel I will soon push a new version

@fantasyado
Copy link

@fantasyado @develiasdaniel I will soon push a new version

Thanks, waiting for it!

@AlbertoLopSie
Copy link

Hi!

Wondering when would you estimate to fix the Android issue... It's working great on iOS but cannot release an Android app based on this.

May I help any way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants