Skip to content

Commit f67c8ba

Browse files
committed
Merge branch master of https://github.com/uiwjs/react-native-uiw into dev
2 parents 02670a1 + 90e2f83 commit f67c8ba

File tree

8 files changed

+18
-13
lines changed

8 files changed

+18
-13
lines changed

example/base/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@example/base",
3-
"version": "3.0.5",
3+
"version": "3.0.6",
44
"private": true,
55
"scripts": {
66
"android": "react-native run-android",
@@ -10,7 +10,7 @@
1010
"lint": "eslint ."
1111
},
1212
"dependencies": {
13-
"@uiw/react-native": "3.0.5",
13+
"@uiw/react-native": "3.0.6",
1414
"react": "18.0.0",
1515
"react-native": "0.69.1",
1616
"react-native-svg": "12.1.1"

example/examples/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "examples",
3-
"version": "3.0.5",
3+
"version": "3.0.6",
44
"private": true,
55
"scripts": {
66
"android": "react-native run-android",
@@ -13,7 +13,7 @@
1313
"@react-native-community/masked-view": "~0.1.11",
1414
"@react-navigation/native": "~6.0.11",
1515
"@react-navigation/stack": "~6.2.2",
16-
"@uiw/react-native": "3.0.5",
16+
"@uiw/react-native": "3.0.6",
1717
"react": "18.0.0",
1818
"react-native": "0.69.1",
1919
"react-native-gesture-handler": "~2.5.0",

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.0.5",
2+
"version": "3.0.6",
33
"packages": ["example/*", "packages/*", "website"],
44
"npmClient": "yarn",
55
"npmClientArgs": ["--production", "--no-optional"],

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uiw/react-native",
3-
"version": "3.0.5",
3+
"version": "3.0.6",
44
"description": "UIW for React Native",
55
"homepage": "https://uiwjs.github.io/react-native-uiw/",
66
"main": "lib/index.js",

packages/core/src/DragDrawer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function DragDrawer(props: DragDrawerProps) {
6060
listener: () => {
6161
let values = DEVICE_HEIGHT - 30 - gestureState.moveY;
6262
setViewHeight(values);
63-
animatedViewHeight.setValue(values);
63+
animatedViewHeight.setValue(values > 50 ? values : 50);
6464
},
6565
useNativeDriver: false,
6666
}, // 可选的异步监听函数

packages/core/src/MenuDropdown/index.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,14 @@ export default class MenuDropdown extends React.Component<MenuDropdownProps> {
5151
};
5252

5353
animateClose = () => {
54-
this.setState({
55-
listHeightValue: new Animated.Value(0),
56-
});
54+
// this.setState({
55+
// listHeightValue: new Animated.Value(0),
56+
// });
57+
Animated.timing(this.state.listHeightValue, {
58+
toValue: 0,
59+
duration: 400,
60+
useNativeDriver: false, // 动画值在不同的驱动方式之间是不能兼容的。因此如果你在某个动画中启用了原生驱动,那么所有和此动画依赖相同动画值的其他动画也必须启用原生驱动。
61+
}).start();
5762
};
5863

5964
menuContainer = (event: LayoutChangeEvent) => {

packages/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uiw/react-native-doc",
3-
"version": "3.0.5",
3+
"version": "3.0.6",
44
"license": "MIT",
55
"homepage": "https://uiwjs.github.io/react-native-uiw/",
66
"repository": {

website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "website",
3-
"version": "3.0.5",
3+
"version": "3.0.6",
44
"description": "Documentation site for React Native UIW.",
55
"private": true,
66
"scripts": {
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@uiw/react-code-preview": "3.0.0",
1717
"@uiw/react-markdown-preview": "3.4.7",
18-
"@uiw/react-native": "3.0.5",
18+
"@uiw/react-native": "3.0.6",
1919
"@uiw/react-native-template": "3.0.0",
2020
"@uiw/reset.css": "~1.0.6",
2121
"react": "18.0.0",

0 commit comments

Comments
 (0)