如何在React网络应用程序中使用移动默认选取器?(How to use mobile default Picker in React web app?)

编程入门 行业动态 更新时间:2024-10-21 19:40:56
如何在React网络应用程序中使用移动默认选取器?(How to use mobile default Picker in React web app?)

我需要在React网络应用程序中分别使用默认的iOS和Android Picker。 我在React Native中发现了一个Picker组件,它显然是做我需要的: https://facebook.github.io/react-native/docs/picker.html 有没有办法在React中导入组件? 或者,可以切换React中的默认选择器?

I need to use respectively the default iOS and Android Picker in a React web app. I've found a Picker component in React Native which apparently does what I need: https://facebook.github.io/react-native/docs/picker.html Is there any way to import the component in React? Alternatively is it possible to toggle the default picker within React?

最满意答案

Github上有一个项目可以完成你想要的所谓的react-native-web,它可以在https://github.com/necolas/react-native-web找到。

我查看了存储库,发现它有你想使用的组件。

There is a project on Github to do exactly what you want called react-native-web which can be found at: https://github.com/necolas/react-native-web

I looked through the repository and found it has the component you want to use.

更多推荐

本文发布于:2023-08-01 11:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1358051.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   如何在   网络   React   mobile

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!