Open wzup opened 6 years ago
Wrong format in native iOS picker and displayed format: Display is 24h, but picker renders 12h AM/PM
Both are sync
const pickerShared = { mode: 'time', placeholder: '00:00', format: 'HH:mm', androidMode: 'spinner', showIcon: false, confirmBtnText: "Confirm", cancelBtnText: "Cancel", customStyles: { dateInput: { borderWidth: 0, alignItems: 'flex-start', justifyContent: 'flex-end', height: 25, paddingBottom: 3, }, dateTouchBody: { height: 25, }, placeholderText: { fontSize: 20 }, dateText: { fontSize: 20 } }, style: {}, is24Hour: true // Only in Android. For iOS use format };
react-native -v
Similar https://github.com/xgfe/react-native-datepicker/issues/164
Adding locale={"SV"} worked for me
Issue
Wrong format in native iOS picker and displayed format: Display is 24h, but picker renders 12h AM/PM
Expected Behavior
Both are sync
Code
Environment
react-native -v
: "0.54.2", OS: macOS High Sierra 10.13.4 Node: 8.11.3 Yarn: Not Found npm: 5.6.0 Watchman: 4.9.0 Xcode: Xcode 9.4.1 Build version 9F2000 Android Studio: 3.1 AI-173.4819257Similar https://github.com/xgfe/react-native-datepicker/issues/164