Nachos UI
made with
React
简介及使用教程
Nachos UI是具有30多个组件的React Native组件库。
安装
Npm
npm i nachos-ui
Yarn
yarn add nachos-ui
使用
全局引入
import { ThemeProvider } from "nachos-ui";
export default (App = () => (
<ThemeProvider>
<RestOfYourApp />
</ThemeProvider>
));
按需引入
import React from 'react'
import { View } from 'react-native'
import { Button } from 'nachos-ui'
const App = () => {
return (
<View>
<Button>Button</Button>
</View>
)
}
示例
作者
Avocode
@avocode相关项目