1- # 更新日志
2-
3- <b ><font face =" 微软雅黑 " size =3 color =#3578e5 >V4.0.0</font ></b >
4-
5- ` 2023-04-14 `
1+ 从 V3 到 V4
2+ ===
3+
4+ ### 升级准备
5+ - 1.请先升级到 3.x 的最新版本。
6+
7+ ### 技术调整
8+ - 1.` react ` 升级至 ` 18.0.0 `
9+ - 2.` react-native ` 升级至 ` 0.69.1 `
10+ - 3.新增主题色和` theme ` 文档使用说明,支持明暗主题适配 ,主题色为 ` #3578e5 `
11+ - 4.组件调整
12+
13+ ### 组件调整
14+
15+ - 1.VerificationCode 验证码倒计时组件 [ ` 589 ` ] ( https://github.com/uiwjs/react-native-uiw/pull/589 )
16+ - 2.Accordion 手风琴组件 [ ` 588 ` ] ( https://github.com/uiwjs/react-native-uiw/pull/588 )
17+ - 3.List组件 titleLabelStyle 属性支持 [ ` 548 ` ] ( https://github.com/uiwjs/react-native-uiw/pull/548 )
18+ - 4.ImagePicker 图片上传组件 [ ` 2674 ` ] ( https://github.com/uiwjs/react-native-uiw/actions/runs/4664460047 )
19+ - 5.DatePeriodInput 日期区间选择器 [ ` 553 ` ] ( https://github.com/uiwjs/react-native-uiw/pull/553 )
20+ - 6.Tree 树形控件 [ ` 590 ` ] ( https://github.com/uiwjs/react-native-uiw/pull/590 )
21+ - 7.ImagePicker 图片保存功能 [ ` 2691 ` ] ( https://github.com/uiwjs/react-native-uiw/actions/runs/4687708113 )
22+ - 8.重构Progress组件 变更参数 [ ` 595 ` ] ( https://github.com/uiwjs/react-native-uiw/pull/595 )
23+
24+ ### 修复功能
25+
26+ - 🐞 fix: 修复Switch初始值(默认值)不能正确显示状态 [ ` 583 ` ] ( https://github.com/uiwjs/react-native-uiw/pull/583 )
27+ - 🐞 fix: 修复SpeedDial文档遮挡,无法点击问题 [ ` 545 ` ] ( https://github.com/uiwjs/react-native-uiw/pull/545 )
28+ - 🐞 fix: 修复选项卡组件报错和展示溢出问题 [ ` 550 ` ] ( https://github.com/uiwjs/react-native-uiw/pull/550 )
29+ - 🐞 fix: 修复SpeedDial层级较低组件无法选中问题 [ ` 553 ` ] ( https://github.com/uiwjs/react-native-uiw/pull/553 )
30+ - 🐞 fix: 修复android保存图片报错 [ ` 86ac78f ` ] ( https://github.com/uiwjs/react-native-uiw/actions/runs/4695870443 )
31+ - 🐞 fix: 修复ActionSheet弹窗按钮的点击区域 [ ` 562 ` ] ( https://github.com/uiwjs/react-native-uiw/pull/562 )
32+ - 🐞 fix: 修复文本输入框组件文档 [ ` 541 ` ] ( https://github.com/uiwjs/react-native-uiw/pull/541 )
33+
34+ ### 开始升级
35+
36+ #### 依赖层升级
37+ ``` diff
38+ "dependencies": {
39+ ...
40+
41+ - "@uiw/react-native": "3.2.3",
42+ - "react-native-svg": "12.1.1",
43+ - "react-native-gesture-handler": "~2.5.0",
44+ + "@uiw/react-native": "4.0.0",
45+ + "@uiw/react-native-image-picker": "4.0.0",
46+ + "react-native-svg": "13.0.0",
47+ + "react-native-gesture-handler": "2.8.0",
48+ + "react-native-image-picker":"^5.3.1",
49+ + "react-native-image-viewing":"~0.2.2",
50+ + "@react-native-camera-roll/camera-roll":"5.3.1"
51+ ...
52+ }
53+ ```
654
7- ** Bug Fixes**
55+ #### 安装@uiw/react-native-image-picker
56+ ` 如果你要使用ImagePicker组件,你需要安装以下依赖 `
57+ ``` diff
58+ "dependencies": {
59+ ...
60+ + "@uiw/react-native-image-picker": "4.0.0",
61+ + "react-native-image-picker":"^5.3.1",
62+ + "react-native-image-viewing":"~0.2.2",
63+ + "@react-native-camera-roll/camera-roll":"5.3.1"
64+ ...
65+ }
66+ ```
867
9- - Switch: 修复switch初始值(默认值)不能正确显示状态 [ #583 ] ( https://github.com/uiwjs/react-native-uiw/pull/583 )
10- - ActionSheet: 优化弹窗按钮的点击区域 [ #562 ] ( https://github.com/uiwjs/react-native-uiw/pull/562 )
11- - Input: 优化文本输入框组件文档 [ #541 ] ( https://github.com/uiwjs/react-native-uiw/pull/541 )
12- - SpeedDial: 修复文档遮挡,无法点击问题 [ #545 ] ( https://github.com/uiwjs/react-native-uiw/pull/545 )
13- - Tabs: 修复选项卡组件报错和展示溢出问题 [ #550 ] ( https://github.com/uiwjs/react-native-uiw/pull/550 )
14- - SpeedDial: 修复层级较低组件无法选中问题 [ #553 ] ( https://github.com/uiwjs/react-native-uiw/pull/553 )
15- - Form: 优化Form示例展示 [ #2641 ] ( https://github.com/uiwjs/react-native-uiw/actions/runs/4644484377 )
16- - ImagePicker: 修复android保存图片报错 [ #2696 ] ( https://github.com/uiwjs/react-native-uiw/actions/runs/4695870443 )
17- - Progress: 重构组件 变更参数
1868
19- ** Feature **
69+ #### 代码层修改
2070
21- - Theme: 新增主题色 和 theme文档使用说明,支持明暗主题适配 ([ #586 ] ( https://github.com/uiwjs/react-native-uiw/pull/586 ) )
22- - VerificationCode: 新增 VerificationCode 验证码倒计时组件 和 文档示例 [ #589 ] ( https://github.com/uiwjs/react-native-uiw/pull/589 )
23- - Tree: 新增 Tree 树形控件 和 文档示例 [ #590 ] ( https://github.com/uiwjs/react-native-uiw/pull/590 )
24- - Accordion: 新增 Accordion 手风琴组件 [ #588 ] ( https://github.com/uiwjs/react-native-uiw/pull/588 )
25- - Accordion: 新增 isMultiple、accordionStyle、iconShow、contentStyle、iconSize 文档示例 [ #588 ] ( https://github.com/uiwjs/react-native-uiw/pull/588 )
26- - ImagePicker: 新增 ImagePicker 图片上传组件 [ #2674 ] ( https://github.com/uiwjs/react-native-uiw/actions/runs/4664460047 )
27- - List: 新增 titleLabelStyle 属性支持 [ #548 ] ( https://github.com/uiwjs/react-native-uiw/pull/548 )
28- - ImagePicker: 新增 ImagePicker 图片保存功能 [ #2691 ] ( https://github.com/uiwjs/react-native-uiw/actions/runs/4687708113 )
29- - DatePeriodInput: 新增 DatePeriodInput 日期区间选择器 [ #553 ] ( https://github.com/uiwjs/react-native-uiw/pull/553 )
71+ #### ThemeProvider 基本用法
3072
31- ### 1. 在app.tsx入口文件添加如下
73+ 使用 ThemeProvider 更好地支持动态主题。 在app.tsx入口文件添加如下
3274
3375``` diff
3476import { ThemeProvider,theme } from '@uiw/react-native';
@@ -38,7 +80,7 @@ import { ThemeProvider,theme } from '@uiw/react-native';
3880+ </ThemeProvider>;
3981```
4082
41- ### 2. VerificationCode 基本用法
83+ #### VerificationCode 基本用法
4284
4385``` diff
4486import React from 'react';
@@ -61,7 +103,7 @@ const Demo = () => {
61103}
62104```
63105
64- ### 3. Tree 基本用法
106+ #### Tree 基本用法
65107
66108``` diff
67109import React from 'react';
@@ -91,7 +133,7 @@ const Demo = () => {
91133}
92134```
93135
94- ### 4. Accordion 基本用法 及 新增属性
136+ #### Accordion 基本用法 及 新增属性
95137
96138``` diff
97139import React from 'react';
@@ -136,12 +178,11 @@ const Demo = () => {
136178 }
137179}
138180```
139-
140- ### 5.ImagePicker 基本用法
181+ #### ImagePicker 基本用法
141182
142183``` diff
143184import React from 'react';
144- import { ImagePicker } from '@uiw/react-native'
185+ import ImagePicker, {File } from '@uiw/react-native-image-picker';
145186import { View } from 'react-native';
146187
147188const Demo = () => {
@@ -161,7 +202,7 @@ const Demo = () => {
161202}
162203```
163204
164- ### 6. DatePeriodInput 基本用法
205+ #### DatePeriodInput 基本用法
165206
166207``` diff
167208import React,{useState} from 'react';
@@ -183,4 +224,4 @@ const Demo = () => {
183224 )
184225 }
185226}
186- ```
227+ ```
0 commit comments