UT 通用组件库
$ yarn add ut-component
查看更多详细用法,请参考各组件内的 readme
import {SearchComponents} from 'ut-component'
const App = () => <SearchComponents.Input title="Hello World" />
- SearchComponents
-
- SearchBase
-
- NavigatorSelect
-
- SearchAutoInput
-
- SearchInput
-
- SearchRadio
-
- SearchSelect
-
- SearchTags
- UTable
- RightActionsRendered
- table-component
在源码内部提供了一个 RN App 供组件调试
$ cd example && yarn && yarn android
由于react-native
并未支持symlinks
,也就是说不能通过软链yarn link
的方式模拟本地依赖的导入。
因此在本组件库的开发中,提供以下解决方案:yarn build
命令会实时监听更改的文件进行持续打包, 在 example 内需要进行调试时, 可以运行yarn change
直接更改node_modules/ut-component
下的dist
文件夹。
当然,除了这种方式之外,也可以考虑使用yalc
的方式模拟软链