@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.
- package/README.md +2 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/volcengine/reactnative/vertc/VertcViewManager.java +1 -1
- package/android/src/main/java/com/volcengine/reactnative/vertc/events/ClassHelper.java +149 -0
- package/ios/VertcView.m +1 -1
- package/ios/VertcViewManager.m +1 -1
- package/lib/commonjs/index.js +2919 -1
- package/lib/module/index.js +2919 -1
- package/lib/typescript/component.d.ts +9 -2
- package/lib/typescript/core/rtc-video.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
// Copyright © 2022 BytePlusRTC All rights reserved.
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
|
|
4
|
-
|
|
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
|
|
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;
|