From b7e1a0c16e82bcf715278892a990389f0ff89656 Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Sat, 20 Aug 2022 11:25:57 +0200 Subject: [PATCH] fix: android button labels not working (#648) --- src/DateTimePickerAndroid.android.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/DateTimePickerAndroid.android.js b/src/DateTimePickerAndroid.android.js index e340885b..e03ae2e2 100644 --- a/src/DateTimePickerAndroid.android.js +++ b/src/DateTimePickerAndroid.android.js @@ -33,11 +33,13 @@ function open(props: AndroidNativeProps) { is24Hour, minimumDate, maximumDate, - neutralButtonLabel, minuteInterval, timeZoneOffsetInMinutes, onChange, onError, + neutralButtonLabel, + positiveButtonLabel, + negativeButtonLabel, } = props; validateAndroidProps(props); invariant(originalValue, 'A date or time must be specified as `value` prop.'); @@ -53,9 +55,11 @@ function open(props: AndroidNativeProps) { is24Hour, minimumDate, maximumDate, - neutralButtonLabel, minuteInterval, timeZoneOffsetInMinutes, + neutralButtonLabel, + positiveButtonLabel, + negativeButtonLabel, }); switch (action) {