在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):tuckerconnelly/carbon-ui开源软件地址(OpenSource Url):https://github.com/tuckerconnelly/carbon-ui开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):No longer maintained! Material Design library for React Native that runs on all platforms. Installation
Material Design is built on the Roboto Fonts, so you need to make them available for Carbon UI. You can download them here, and then install them for your platform: Install react-native-web, and then place the import 'babel-polyfill'
import React from 'react'
import { AppRegistry } from 'react-native-web'
import { WebStyles } from 'carbon-ui'
import App from './src/index'
const AppWithStyles = () => <App><WebStyles /></App>
AppRegistry.registerComponent('CarbonUIExample', () => AppWithStyles)
AppRegistry.runApplication('CarbonUIExample', { rootTag: document.getElementById('root') }) UsageOnce you're installed, you can use any of Carbon UI's components: import React from 'react'
import { Paper, Display1, FlatButton } from 'carbon-ui'
export default () =>
<Paper>
<Display1>Giant display</Display1>
<FlatButton>Flat button</Button>
</Paper> DocumentationKnown issuesPerformance on Android Performance on Android can get pretty slow if you're not careful. Carbon UI makes good use of the Animated API, which is particularly slow on Android. Carbon UI optimizes a lot, using native animations and graceful degradations, and it'll generally be good-to-go out of the box. Long term, the React Native team is doing good work to improve Animated performance. If you run in to any snags, check out the Known issues page in the docs for tips on improving performance, or file an issue here. DisclaimerThis is still a beta. Expect bugs |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论