@htyf-mp/taro-components-rn 0.7.0 → 0.7.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.
@@ -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(): import("react/jsx-runtime").JSX.Element;
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(): import("react/jsx-runtime").JSX.Element;
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): import("react/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
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.0",
3
+ "version": "0.7.1",
4
4
  "description": "React Native 基础组件",
5
5
  "author": "O2Team",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@ant-design/react-native": "5.4.3",
39
- "@htyf-mp/taro-router-rn": "0.7.0",
39
+ "@htyf-mp/taro-router-rn": "0.7.1",
40
40
  "@tarojs/components": "4.2.0",
41
41
  "prop-types": "15.8.1",
42
42
  "react-native-maps": "1.29.0"
@@ -77,5 +77,5 @@
77
77
  "access": "public"
78
78
  },
79
79
  "types": "dist/index.d.ts",
80
- "gitHead": "0bb5ec21167c668e13d0a072a90edc153e4111e8"
80
+ "gitHead": "29d6076f403a5e856e08602ab61d57c887766787"
81
81
  }