|
6 | 6 |
|
7 | 7 | - Smooth and fast cross platform Material Design **date** picker and **time** picker for React Native Paper |
8 | 8 | - Tested on Android, iOS and the web platform! |
9 | | -- Uses the native Date.Intl API's which work out of the box on the web / iOS |
| 9 | +- Uses the native Date.Intl API's which work out of the box on the web / iOS (automatic day name, month translations without bundle size increase) |
10 | 10 | - Simple API |
11 | 11 | - Typesafe |
12 | 12 | - Endless scrolling |
@@ -74,6 +74,7 @@ function SingleDatePage() { |
74 | 74 | saveLabel="Save" // optional |
75 | 75 | label="Select date" // optional |
76 | 76 | animationType="slide" // optional, default is 'slide' on ios/android and 'none' on web |
| 77 | + locale={'en'} // optional, default is automically detected by your system |
77 | 78 | /> |
78 | 79 | <Button onPress={()=> setVisible(true)}> |
79 | 80 | Pick date |
@@ -115,6 +116,7 @@ export default function RangeDatePage() { |
115 | 116 | startLabel="From" // optional |
116 | 117 | endLabel="To" // optional |
117 | 118 | animationType="slide" // optional, default is slide on ios/android and none on web |
| 119 | + locale={'en'} // optional, default is automically detected by your system |
118 | 120 | /> |
119 | 121 | <Button onPress={()=> setVisible(true)}> |
120 | 122 | Pick range |
@@ -158,6 +160,7 @@ export default function TimePickerPage() { |
158 | 160 | cancelLabel="Cancel" // optional, default: 'Cancel' |
159 | 161 | confirmLabel="Ok" // optional, default: 'Ok' |
160 | 162 | animationType="fade" // optional, default is 'none' |
| 163 | + locale={'en'} // optional, default is automically detected by your system |
161 | 164 | /> |
162 | 165 | <Button onPress={()=> setVisible(true)}> |
163 | 166 | Pick time |
|
0 commit comments