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

'OK' and 'CANCEL' buttons on dialog appear empty #13

Closed
JorgeAlonso opened this issue Nov 2, 2017 · 6 comments
Closed

'OK' and 'CANCEL' buttons on dialog appear empty #13

JorgeAlonso opened this issue Nov 2, 2017 · 6 comments

Comments

@JorgeAlonso
Copy link

Hi!

I have started using this component on a new react native development, but unfortunately, when the dialog is displayed (on iOS emulator), the 'ok' and 'cancel' buttons appear empty. They are clickable, but no text is displayed on them.

Any hint on what could be happening? I have not found how to define the text on those buttons.

Thanks

@kf729ik
Copy link

kf729ik commented Nov 6, 2017

Any solution? I have the same problem on IOS.

@Nemesisesq
Copy link

Nemesisesq commented Nov 10, 2017

Set the props "okLabel" and "cancelLabel" on the DatePickerDialog component tag.

@pandiaraj44
Copy link
Owner

Thanks, @Nemesisesq .

Hi @JorgeAlonso , @kf729ik ,

As for now, you need to pass the label name. We will add default props in next release.

@Krupatank
Copy link

Krupatank commented Nov 28, 2017

update  this  

<DatePickerDialog ref="dobDialog" okLabel = 'OK' cancelLabel = 'CANCEL' onDatePicked={this.onDOBDatePicked.bind(this)} />

@pandiaraj44
Copy link
Owner

Thanks, @Krupatank ,

Hi @JorgeAlonso , @kf729ik
Ios datepicker-dialog ok, cancel button label added to default props. If you didn't give "okLablel/cancelLabel" then default label(Ok/Cancel will be shown.

New version released.
https://www.npmjs.com/package/react-native-datepicker-dialog

@JorgeAlonso
Copy link
Author

Awesome, thanks a lot for the prompt response

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