react-native-wheel-pick 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/package.json +1 -1
- package/src/date-picker.android.js +5 -3
package/README.md
CHANGED
|
@@ -133,6 +133,13 @@ onDateChange={(date: Date) => { console.log(date) }}
|
|
|
133
133
|
<Picker style={{ height: 50 }} />
|
|
134
134
|
// DatePicker still not supported on Web.
|
|
135
135
|
```
|
|
136
|
+
## How to change Font Family for Android
|
|
137
|
+
|
|
138
|
+
1. Goto `android/app/src/main/res/values/styles.xml`
|
|
139
|
+
2. Add this code `<item name="wheel_font_path">fonts/[FONT_NAME].ttf</item>`
|
|
140
|
+
|
|
141
|
+
Thanks to [@RMabroukS](https://github.com/TronNatthakorn/react-native-wheel-pick/issues/58)
|
|
142
|
+
|
|
136
143
|
## FYI
|
|
137
144
|
|
|
138
145
|
I rarely check this lib. (6 Months - 3 Years). Up on my life's time.
|
|
@@ -145,6 +152,11 @@ You can sponsor me
|
|
|
145
152
|
OR you can fork this project instead.
|
|
146
153
|
|
|
147
154
|
## Release Note
|
|
155
|
+
|
|
156
|
+
### 1.2.5 (Jun 14 2025)
|
|
157
|
+
[Android]
|
|
158
|
+
- Fix Android DatePicker time mode default selection issue and correct hour range. Thanks to [@harryxu](https://github.com/TronNatthakorn/react-native-wheel-pick/pull/66)
|
|
159
|
+
|
|
148
160
|
### 1.2.4 (Feb 17 2025)
|
|
149
161
|
[Web]
|
|
150
162
|
- Test on `Platform.OS === 'web'`
|
package/package.json
CHANGED
|
@@ -239,12 +239,14 @@ export default class DatePicker extends PureComponent {
|
|
|
239
239
|
|
|
240
240
|
const [hours, minutes] = [[], []];
|
|
241
241
|
|
|
242
|
-
for (let i = 0; i <=
|
|
243
|
-
hours.push(i);
|
|
242
|
+
for (let i = 0; i <= 23; i += 1) {
|
|
243
|
+
// hours.push(i);
|
|
244
|
+
hours.push({ value: i, label: `${i}` })
|
|
244
245
|
}
|
|
245
246
|
|
|
246
247
|
for (let i = 0; i <= 59; i += 1) {
|
|
247
|
-
minutes.push(i);
|
|
248
|
+
// minutes.push(i);
|
|
249
|
+
minutes.push({ value: i, label: `${i}` })
|
|
248
250
|
}
|
|
249
251
|
|
|
250
252
|
return [
|