- Notifications
You must be signed in to change notification settings - Fork26
A UI component library based on React Native (Android & iOS).
License
NotificationsYou must be signed in to change notification settings
uiwjs/react-native-uiw
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A UI component library based on React Native (Android & iOS).
快速上手 |参与组件开发 |参与文档/网站编辑开发 |组件库
您可以使用我们制定的模版(@uiw/react-native-template)创建一个新项目:
# 此模板默认集成了一些必用的依赖,如路由,组件库等npx react-native init AwesomeProject --template @uiw/react-native-templateyarn add @uiw/react-native react-native-svg@13.9.0 react-native-root-siblings@4.1.1 react-native-gesture-handler@2.8.0
项目App.tsx文件配置
//...其他importimport{ThemeProvider}from'@uiw/react-native';constApp=()=>{return<ThemeProvider>{/** 其他Provider */}</ThemeProvider>;};exportdefaultApp;
importReactfrom'react';import{View}from'react-native';import{Icon}from'@uiw/react-native'exportdefaultclassDemoextendsReact.Component{render(){return(<View><Iconname='apple'size={46}color='#50CB42'/></View>)}}
# Install current dependencies, and dependencies in sub-packagesyarn installyarn run build# Compile package
Real-time monitoring of package and document website local preview
# Step 1yarn run lib:watch# Compile and output JS file# Step 2yarn run lib:watch:type# Output type file d.ts# Step 3yarn run start# Run the preview document website locally
第一步安装文档包和预览工具
npm install @uiw/react-native-doc @kkt/doc -D# yarn add @uiw/react-native-doc @kkt/doc -D第二步配置命令
在package.json文件中配置命令
// ..."scripts":{"doc":"kktd @uiw/react-native-doc/doc/build" }
Licensed under the MIT License.
About
A UI component library based on React Native (Android & iOS).
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.