Skip to content

Commit b7e1a0c

Browse files
authored
fix: android button labels not working (#648)
1 parent a587a49 commit b7e1a0c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/DateTimePickerAndroid.android.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ function open(props: AndroidNativeProps) {
3333
is24Hour,
3434
minimumDate,
3535
maximumDate,
36-
neutralButtonLabel,
3736
minuteInterval,
3837
timeZoneOffsetInMinutes,
3938
onChange,
4039
onError,
40+
neutralButtonLabel,
41+
positiveButtonLabel,
42+
negativeButtonLabel,
4143
} = props;
4244
validateAndroidProps(props);
4345
invariant(originalValue, 'A date or time must be specified as `value` prop.');
@@ -53,9 +55,11 @@ function open(props: AndroidNativeProps) {
5355
is24Hour,
5456
minimumDate,
5557
maximumDate,
56-
neutralButtonLabel,
5758
minuteInterval,
5859
timeZoneOffsetInMinutes,
60+
neutralButtonLabel,
61+
positiveButtonLabel,
62+
negativeButtonLabel,
5963
});
6064

6165
switch (action) {

0 commit comments

Comments
 (0)