我已经使用react一段时间了,我知道Material UI https://material-ui.com/是为react构建的UI库.我的问题是——这个库(为react而构建)是否可以与react native一起使用?

在一些研究中,我发现react native有另一个UI库,名为react native paper,但我想知道Material UI是否可以与react native配合使用?

推荐答案

is a react based implementation of the material design system. It is meant for web development and the output that you get is HTML/ CSS (which are the building block of every web page).

is a framework that lets you build native mobile apps using the power and syntax of React. The native programming language of mobile apps depends on the mobile-os you are currently running. The React Native framework gives you the ability to program in React style, and the output will be a compiled version (os-specific) using the native OS language.

不幸的是,这两个库并不能真正协同工作,而且您不能只获取任何React库并在React本机代码中使用它.

React-native相关问答推荐

React Native:任务 ':app:checkDebugDuplicateClasses' 执行失败

react-redux connect 和 redux 数据的组件生命周期顺序

如何在react-native 中设置视图的自动高度

_react2.default.PropTypes.function 未定义

如何停止在 textInput React Native 中输入空格?

React Native WebView onMessage 没有做任何事情

ReactJS toLowerCase 不是一个函数

React Native 上传到 S3 存储空间

图像背景ResizeMode调整大小模式

react Navigation 在标题中使用图像?

React Native:双击退出应用程序

通过带有对象子对象的数组react native 映射 - 与react网络中的工作方式不同?

在 Docker 中使用 Fastlane 构建 iOS 应用

如何在 Expo 和 React Native 中使用绝对路径导入?

检测是否通过推送通知打开了 React Native iOS 应用

React Native 将状态中的数组值应用为 Picker 项

如何在 React Native 中禁用图像淡入效果?

React Native:如何动态更改

使用expo react-native链接?

在 react-native 中使用捏拉zoom 的可滚动图像