@byteplus/react-native-rtc 1.0.2 → 1.0.3

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.
@@ -1,11 +1,18 @@
1
1
  // Copyright © 2022 BytePlusRTC All rights reserved.
2
2
  // SPDX-License-Identifier: MIT
3
3
 
4
- export type NativeViewComponentProps = {
4
+ import React from 'react';
5
+ type VertcViewProps = {
5
6
  viewId: string;
6
7
  kind: 'SurfaceView' | 'TextureView' | 'View' | 'UIView';
7
8
  children?: any;
8
9
  style?: any;
10
+ onViewLoad?: () => void;
11
+ };
12
+ export type NativeViewComponentProps = Omit<VertcViewProps, 'onViewLoad'> & {
9
13
  onLoad?: () => void;
10
14
  };
11
- export declare const NativeViewComponent: import("react-native").HostComponent<NativeViewComponentProps>;
15
+ export declare class NativeViewComponent extends React.Component<NativeViewComponentProps> {
16
+ render(): React.ReactNode;
17
+ }
18
+ export {};
@@ -3,6 +3,7 @@
3
3
 
4
4
  import { RTCVideo, type ProblemFeedbackOption } from '../codegen/pack';
5
5
  import type { IFeedbackProblemInfo, IRemoteStreamInfo } from '../interface';
6
+ import './callback';
6
7
  declare module '../codegen/pack' {
7
8
  interface RTCVideo {
8
9
  feedback(options: ProblemFeedbackOption[], info: IFeedbackProblemInfo): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteplus/react-native-rtc",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "peerDependencies": {
5
5
  "react": "*",
6
6
  "react-native": "*"