@htyf-mp/taro-components-rn 0.7.0 → 0.7.2
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.
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Camera/index.d.ts +1 -1
- package/dist/components/ClickableSimplified/index.d.ts +3 -8
- package/dist/components/Input/index.d.ts +2 -1
- package/dist/components/Navigator/index.d.ts +1 -1
- package/dist/components/Swiper/carousel.d.ts +1 -1
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Video/index.d.ts +1 -1
- package/package.json +5 -4
|
@@ -43,7 +43,7 @@ declare class _Button extends React.Component<ButtonProps, ButtonState> {
|
|
|
43
43
|
hoverStayTime: number;
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
};
|
|
46
|
-
$touchable: React.RefObject<TouchableWithoutFeedback>;
|
|
46
|
+
$touchable: React.RefObject<TouchableWithoutFeedback | null>;
|
|
47
47
|
isTouchEnd: boolean;
|
|
48
48
|
pressInTimer: ReturnType<typeof setTimeout>;
|
|
49
49
|
pressOutTimer: ReturnType<typeof setTimeout>;
|
|
@@ -3,7 +3,7 @@ import React, { Component } from 'react';
|
|
|
3
3
|
import { CameraProps, CameraState } from './PropsType';
|
|
4
4
|
export declare class _Camera extends Component<CameraProps, CameraState> {
|
|
5
5
|
constructor(props: CameraProps);
|
|
6
|
-
expoCameraRef: React.RefObject<CameraView>;
|
|
6
|
+
expoCameraRef: React.RefObject<CameraView | null>;
|
|
7
7
|
componentDidMount(): Promise<void>;
|
|
8
8
|
onError: (event: CameraMountError) => void;
|
|
9
9
|
onInitDone: () => void;
|
|
@@ -55,14 +55,11 @@ export default function <P extends Record<string, any>>(WrappedComponent: React.
|
|
|
55
55
|
}[];
|
|
56
56
|
};
|
|
57
57
|
componentWillUnmount(): void;
|
|
58
|
-
render():
|
|
58
|
+
render(): React.JSX.Element;
|
|
59
59
|
context: unknown;
|
|
60
60
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & ClickableProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
61
61
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
62
62
|
readonly props: Readonly<P & ClickableProps>;
|
|
63
|
-
refs: {
|
|
64
|
-
[key: string]: React.ReactInstance;
|
|
65
|
-
};
|
|
66
63
|
componentDidMount?(): void;
|
|
67
64
|
shouldComponentUpdate?(nextProps: Readonly<P & ClickableProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
68
65
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
@@ -115,14 +112,11 @@ export default function <P extends Record<string, any>>(WrappedComponent: React.
|
|
|
115
112
|
}[];
|
|
116
113
|
};
|
|
117
114
|
componentWillUnmount(): void;
|
|
118
|
-
render():
|
|
115
|
+
render(): React.JSX.Element;
|
|
119
116
|
context: unknown;
|
|
120
117
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & ClickableProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
121
118
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
122
119
|
readonly props: Readonly<P & ClickableProps>;
|
|
123
|
-
refs: {
|
|
124
|
-
[key: string]: React.ReactInstance;
|
|
125
|
-
};
|
|
126
120
|
componentDidMount?(): void;
|
|
127
121
|
shouldComponentUpdate?(nextProps: Readonly<P & ClickableProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
128
122
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
@@ -140,4 +134,5 @@ export default function <P extends Record<string, any>>(WrappedComponent: React.
|
|
|
140
134
|
hoverStayTime: number;
|
|
141
135
|
};
|
|
142
136
|
contextType?: React.Context<any> | undefined;
|
|
137
|
+
propTypes?: any;
|
|
143
138
|
};
|
|
@@ -23,9 +23,10 @@
|
|
|
23
23
|
*
|
|
24
24
|
* @todo KeyboardAvoidingView
|
|
25
25
|
*/
|
|
26
|
+
import * as React from 'react';
|
|
26
27
|
import { InputProps } from './PropsType';
|
|
27
28
|
declare const _Input: {
|
|
28
|
-
(props: InputProps):
|
|
29
|
+
(props: InputProps): React.JSX.Element;
|
|
29
30
|
displayName: string;
|
|
30
31
|
};
|
|
31
32
|
export default _Input;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { NavigatorProps } from '@tarojs/components/types/Navigator';
|
|
2
|
-
export default function Navigator(props: NavigatorProps): import("react
|
|
2
|
+
export default function Navigator(props: NavigatorProps): import("react").JSX.Element;
|
|
@@ -13,7 +13,7 @@ export interface CarouselState {
|
|
|
13
13
|
}
|
|
14
14
|
declare class Carousel extends React.Component<CarouselProps, CarouselState> {
|
|
15
15
|
static defaultProps: CarouselProps;
|
|
16
|
-
viewPager: React.RefObject<ViewPager>;
|
|
16
|
+
viewPager: React.RefObject<ViewPager | null>;
|
|
17
17
|
private autoplayTimer;
|
|
18
18
|
private isScrolling;
|
|
19
19
|
private get count();
|
|
@@ -24,7 +24,7 @@ declare class _Switch extends React.Component<SwitchProps, SwitchState> {
|
|
|
24
24
|
color: string;
|
|
25
25
|
disabled: boolean;
|
|
26
26
|
};
|
|
27
|
-
$touchable: React.RefObject<Checkbox | Switch>;
|
|
27
|
+
$touchable: React.RefObject<Checkbox | Switch | null>;
|
|
28
28
|
state: SwitchState;
|
|
29
29
|
static getDerivedStateFromProps(nextProps: SwitchProps, lastState: SwitchState): SwitchState | null;
|
|
30
30
|
_simulateNativePress: () => void;
|
|
@@ -28,7 +28,7 @@ declare class _Video extends Component<Props, any> {
|
|
|
28
28
|
static defaultProps: Props;
|
|
29
29
|
player: VideoPlayer | null;
|
|
30
30
|
taroVideoRef: TaroVideoRef | null;
|
|
31
|
-
videoViewRef: React.RefObject<VideoView>;
|
|
31
|
+
videoViewRef: React.RefObject<VideoView | null>;
|
|
32
32
|
subscriptions: EventSubscription[];
|
|
33
33
|
/** @type {number} */
|
|
34
34
|
currentTime: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htyf-mp/taro-components-rn",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "React Native 基础组件",
|
|
5
5
|
"author": "O2Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
],
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
29
|
-
"url": "
|
|
29
|
+
"url": "https://github.com/htyf-mp-community/htyf-taro.git",
|
|
30
|
+
"directory": "packages/taro-components-rn"
|
|
30
31
|
},
|
|
31
32
|
"keywords": [
|
|
32
33
|
"taro"
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
39
|
"@ant-design/react-native": "5.4.3",
|
|
39
|
-
"@htyf-mp/taro-router-rn": "0.7.
|
|
40
|
+
"@htyf-mp/taro-router-rn": "0.7.2",
|
|
40
41
|
"@tarojs/components": "4.2.0",
|
|
41
42
|
"prop-types": "15.8.1",
|
|
42
43
|
"react-native-maps": "1.29.0"
|
|
@@ -77,5 +78,5 @@
|
|
|
77
78
|
"access": "public"
|
|
78
79
|
},
|
|
79
80
|
"types": "dist/index.d.ts",
|
|
80
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "1f273e8e3bf21733b9c57a3881a949a2228d95dd"
|
|
81
82
|
}
|