Skip to content

Hzyhhh/ut-component

Repository files navigation

UT-component

UT 通用组件库

安装

$ yarn add ut-component

使用

查看更多详细用法,请参考各组件内的 readme

import {SearchComponents} from 'ut-component'

const App = () => <SearchComponents.Input title="Hello World" />

组件包括

Demo App

在源码内部提供了一个 RN App 供组件调试

$ cd example && yarn && yarn android

调试开发须知

由于react-native并未支持symlinks,也就是说不能通过软链yarn link的方式模拟本地依赖的导入。

因此在本组件库的开发中,提供以下解决方案:yarn build 命令会实时监听更改的文件进行持续打包, 在 example 内需要进行调试时, 可以运行yarn change直接更改node_modules/ut-component下的dist文件夹。

当然,除了这种方式之外,也可以考虑使用yalc的方式模拟软链