react-native-web,DatePicker组件? [英] react-native-web, DatePicker component?
问题描述
我希望将https://github.com/xgfe/react-native-datepicker
与react-native-web一起使用,但我认为它不兼容.
I was hoping to use https://github.com/xgfe/react-native-datepicker
with react-native-web but it's not compatible I think.
是否还有其他库提供与react-native-web
兼容的图像中的本机datepicker外观?
Is there other library that offers native datepicker look as in the image which are compatible with react-native-web
?
推荐答案
一种可能是使用react-native-web库中的createElement函数编写具有"date"类型的本机输入,就像我在此处使用select和option标记所做的那样: https://gist.github.com/orYoffe/1f5d1651bab5d477730aec317ed405fc
one possibility is to write a native input with "date" type with the createElement function from react-native-web library like i did here with select and option tags: https://gist.github.com/orYoffe/1f5d1651bab5d477730aec317ed405fc
那么您将在移动网络和其他本机支持的功能上具有本机行为
Then you would have native behaviour on mobile web and other native supported features
这篇关于react-native-web,DatePicker组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!