@unif/react-native-ui 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -8
  2. package/package.json +3 -4
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @unif/react-native-ui
2
2
 
3
- UNIF React Native UI 组件库 — 基于 shadcn/ui 设计理念,为 React Native 0.84+ 构建的现代化 UI 系统。
3
+ UNIF React Native UI 组件库 — React Native 0.84+ 构建的现代化 UI 系统。
4
4
 
5
5
  ## 环境要求
6
6
 
@@ -13,7 +13,6 @@ UNIF React Native UI 组件库 — 基于 shadcn/ui 设计理念,为 React Nat
13
13
  | react-native-gesture-handler | >= 2.21.0 |
14
14
  | react-native-safe-area-context | >= 5.0.0 |
15
15
  | react-native-svg | >= 15.2.0 |
16
- | react-native-keyboard-controller | >= 1.18.0 |
17
16
 
18
17
  ## 安装
19
18
 
@@ -24,12 +23,9 @@ npx expo install @unif/react-native-ui \
24
23
  react-native-reanimated \
25
24
  react-native-gesture-handler \
26
25
  react-native-safe-area-context \
27
- react-native-svg \
28
- react-native-keyboard-controller
26
+ react-native-svg
29
27
  ```
30
28
 
31
- > **注意**:需要 Development Build(`expo run:ios` / `expo run:android`),不支持 Expo Go。
32
-
33
29
  在 `app.json` 中添加插件:
34
30
 
35
31
  ```json
@@ -47,8 +43,7 @@ yarn add @unif/react-native-ui \
47
43
  react-native-reanimated \
48
44
  react-native-gesture-handler \
49
45
  react-native-safe-area-context \
50
- react-native-svg \
51
- react-native-keyboard-controller
46
+ react-native-svg
52
47
  ```
53
48
 
54
49
  在 `babel.config.js` 中添加(必须是 plugins 最后一项):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unif/react-native-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "UNIF React Native UI Components",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/module/index.js",
@@ -44,7 +44,7 @@
44
44
  "scripts": {
45
45
  "example": "yarn --cwd example",
46
46
  "clean": "del-cli lib",
47
- "prepare": "husky || true",
47
+ "prepare": "[ -n \"$CI\" ] || husky",
48
48
  "prepublishOnly": "bob build",
49
49
  "typecheck": "tsc",
50
50
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
@@ -109,8 +109,7 @@
109
109
  "peerDependencies": {
110
110
  "react": ">=19.0.0",
111
111
  "react-native": ">=0.84.0",
112
- "react-native-gesture-handler": ">=2.21.0",
113
- "react-native-keyboard-controller": ">=1.18.0",
112
+ "react-native-gesture-handler": ">=2.30.0",
114
113
  "react-native-reanimated": ">=4.0.0",
115
114
  "react-native-safe-area-context": ">=5.0.0",
116
115
  "react-native-svg": ">=15.2.0",