How to Pick a period of time instead of specific time ReactNative

问题: I'm using react-native Timepicker to pick a starting_time. but instead of ending_time i want to pick operation duration time, but it can not be done using timepicker. how c...

问题:

I'm using react-native Timepicker to pick a starting_time. but instead of ending_time i want to pick operation duration time, but it can not be done using timepicker. how can i pick a period of time instead of specific time?

now my app do this:

starting_time: 8 am
ending_time: 10 am

but what i want is:

starting_time: 8am
duration: 2 hours

回答1:

I had the similar problem i fixed it using Time picker and Picker here is the screen shot.

if this solves your problem i can share the reusable components.

Time Picker picker

  • 发表于 2019-03-03 18:01
  • 阅读 ( 174 )
  • 分类:sof

条评论

请先 登录 后评论
不写代码的码农
小编

篇文章

作家榜 »

  1. 小编 文章
返回顶部
部分文章转自于网络,若有侵权请联系我们删除