Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"jest": "^24.9.0",
"metro-react-native-babel-preset": "^0.56.0",
"react-test-renderer": "16.9.0",
"typescript": "^3.7.3"
"typedoc-plugin-no-inherit": "^1.1.10",
"typescript": "^4.0.2"
},
"jest": {
"preset": "react-native",
Expand Down
19 changes: 14 additions & 5 deletions src/RtcLocalView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ import {Platform, ViewProps} from "react-native";
import {RtcSurfaceView, RtcSurfaceViewProps, RtcTextureView, RtcTextureViewProps} from "./src/RtcRenderView.native";

/**
* Use SurfaceView in Android.
* Use UIView in iOS.
* The SurfaceView class.
*
* **Note**
*
* SurfaceView is supported on Android only. Use UIView on iOS.
*
* @noInheritDoc
*/
class SurfaceView extends Component<ViewProps & RtcSurfaceViewProps, {}> {
render() {
Expand All @@ -18,8 +23,12 @@ class SurfaceView extends Component<ViewProps & RtcSurfaceViewProps, {}> {
}

/**
* Use TextureView in Android.
* Not support for iOS.
* The TextureView class.
*
* **Note**
*
* TextureView is supported on Android only. iOS does not support TextureView.
* @noInheritDoc
*/
class TextureView extends Component<ViewProps & RtcTextureViewProps, {}> {
render() {
Expand All @@ -34,7 +43,7 @@ class TextureView extends Component<ViewProps & RtcTextureViewProps, {}> {
}

/**
* View for preview local video.
* View for previewing local video.
*/
export default {
SurfaceView,
Expand Down
19 changes: 14 additions & 5 deletions src/RtcRemoteView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ import {
} from "./src/RtcRenderView.native";

/**
* Use SurfaceView in Android.
* Use UIView in iOS.
* The SurfaceView class.
*
* **Note**
*
* SurfaceView is supported on Android only. Use UIView on iOS.
*
* @noInheritDoc
*/
class SurfaceView extends Component<ViewProps & RtcSurfaceViewProps & RtcUidProps, {}> {
render() {
Expand All @@ -22,8 +27,12 @@ class SurfaceView extends Component<ViewProps & RtcSurfaceViewProps & RtcUidProp
}

/**
* Use TextureView in Android.
* Not support for iOS.
* The TextureView class.
*
* **Note**
*
* TextureView is supported on Android only. iOS does not support TextureView.
* @noInheritDoc
*/
class TextureView extends Component<ViewProps & RtcTextureViewProps & RtcUidProps, {}> {
render() {
Expand All @@ -36,7 +45,7 @@ class TextureView extends Component<ViewProps & RtcTextureViewProps & RtcUidProp
}

/**
* View for render remote video.
* View for rendering remote video.
*/
export default {
SurfaceView,
Expand Down
Loading