xgfe / react-native-datepicker

react native datePicker component for both Android and IOS, useing DatePikcerAndroid, TimePickerAndroid and DatePickerIOS
MIT License
2.12k stars 726 forks source link

如何把月份英文换成数字 #405

Open sleepserenade opened 4 years ago

sleepserenade commented 4 years ago

Issue

Expected Behavior

Code

Environment

  1. react-native -v:
  2. node -v:
  3. npm -v:
  4. yarn --version:
  5. target platform: Android | iOS
  6. operating system:
LSJJOON commented 4 years ago

well, i think you can't controll absolutely this component, you can use locale (https://facebook.github.io/react-native/docs/datepickerios#locale) setting in ios. and refer to #71

mmorcc commented 4 years ago
    confirmBtnText="确定"
    cancelBtnText="取消"
    locale={"zh-Hans"}
wolfXu commented 4 years ago

locale={I18n.currentLocale()} import I18n,it worked for me

sleepserenade commented 4 years ago

thank you 

------------------ 原始邮件 ------------------ 发件人: "wolfXu"<notifications@github.com>; 发送时间: 2020年4月29日(星期三) 上午10:21 收件人: "xgfe/react-native-datepicker"<react-native-datepicker@noreply.github.com>; 抄送: "Chox"<552428774@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [xgfe/react-native-datepicker] 如何把月份英文换成数字 (#405)

locale={I18n.currentLocale()} import I18n,it worked for me

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

jolun1211 commented 4 years ago
    confirmBtnText="确定"
    cancelBtnText="取消"
    locale={"zh-Hans"}