You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve occasional styling bug with inline display in datetime mode on iOS (#697)
BREAKING CHANGE: This is a light breaking change since it might break custom patches people applied to fix this issue in other way + we're bumping the `@react-native-community/datetimepicker` peer-dependency version
Copy file name to clipboardexpand all lines: README.md
+34-35
Original file line number
Diff line number
Diff line change
@@ -91,37 +91,38 @@ export default Example;
91
91
92
92
👉 Please notice that **all the [`@react-native-community/react-native-datetimepicker`](https://github.com/react-native-community/react-native-datetimepicker) props are supported** as well!
|`modalStyleIOS`| style || Style of the modal content (iOS) |
111
+
|`mode`| string | "date" | Choose between "date", "time", and "datetime" |
112
+
|`onCancel`| func |**REQUIRED**| Function called on dismiss |
113
+
|`onChange`| func | () => null | Function called when the date changes (with the new date as parameter). |
114
+
|`onConfirm`| func |**REQUIRED**| Function called on date or time picked. It returns the date or time as a JavaScript Date object |
115
+
|`onHide`| func | () => null | Called after the hide animation |
116
+
|`pickerContainerStyleIOS`| style || The style of the picker container (iOS) |
117
+
|`pickerStyleIOS`| style || The style of the picker component wrapper (iOS) |
118
+
|`pickerComponentStyleIOS`| style || The style applied to the actual picker component - this can be either a native iOS picker or a custom one if `customPickerIOS` was provided |
118
119
119
120
## Frequently Asked Questions
120
121
121
-
This repo is only maintained by me, and unfortunately I don't have enough time for dedicated support & question.
122
+
This repo is only maintained by me, and unfortunately I don't have enough time for dedicated support & question.
122
123
If you're experiencing issues, please check the FAQs below.
123
124
For questions and support, please start [try starting a discussion](https://github.com/mmazzarolo/react-native-modal-datetime-picker/discussions) or try asking it on [StackOverflow](stackoverflow).
124
-
⚠️ __Please use [the GitHub issues](https://github.com/mmazzarolo/react-native-modal-datetime-picker/issues) only for well-described and reproducible bugs. Question/support issues will be closed.__
125
+
⚠️ **Please use [the GitHub issues](https://github.com/mmazzarolo/react-native-modal-datetime-picker/issues) only for well-described and reproducible bugs. Question/support issues will be closed.**
125
126
126
127
### The component is not working as expected, what should I do?
You can't — [`@react-native-community/datetimepicker`](https://github.com/react-native-community/react-native-datetimepicker) doesn't allow you to do so. That said, you can allow only "range" of dates by setting a minimum and maximum date. See below for more info.
193
-
191
+
192
+
You can't — [`@react-native-community/datetimepicker`](https://github.com/react-native-community/react-native-datetimepicker) doesn't allow you to do so. That said, you can allow only "range" of dates by setting a minimum and maximum date. See below for more info.
193
+
194
194
### How can I set a minimum and/or maximum date?
195
195
196
196
You can use the [`minimumDate`](https://github.com/react-native-datetimepicker/datetimepicker#minimumdate-optional) and [`maximumDate`](https://github.com/react-native-datetimepicker/datetimepicker#maximumdate-optional) props from [`@react-native-community/datetimepicker`](https://github.com/react-native-community/react-native-datetimepicker).
Please make sure you're on the latest version of `react-native-modal-datetime-picker` and of the [`@react-native-community/datetimepicker`](https://github.com/react-native-community/datetimepicker).
233
233
[We already closed several iOS 14 issues that were all caused by outdated/cached versions of the community datetimepicker](https://github.com/mmazzarolo/react-native-modal-datetime-picker/issues?q=%22ios+14%22).
234
-
235
-
### Why is the picker not visible/transparent on iOS?
236
-
237
-
Please make sure you're on the latest version of `react-native-modal-datetime-picker` and of [`@react-native-community/datetimepicker`](https://github.com/react-native-community/datetimepicker).
238
-
Also, double-check that the picker light/dark theme is aligned with the OS one (e.g., don't "force" a theme using `isDarkModeEnabled`).
239
234
235
+
### Why is the picker not visible/transparent on iOS?
236
+
237
+
Please make sure you're on the latest version of `react-native-modal-datetime-picker` and of [`@react-native-community/datetimepicker`](https://github.com/react-native-community/datetimepicker).
238
+
Also, double-check that the picker light/dark theme is aligned with the OS one (e.g., don't "force" a theme using `isDarkModeEnabled`).
240
239
241
240
### Why can't I show an alert after the picker has been hidden (on iOS)?
0 commit comments