Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Jun 12, 2020
1 parent 7aca568 commit 462f500
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class RCTAgoraRtcSurfaceViewManager: RCTViewManager {
private func engine() -> AgoraRtcEngineKit? {
(bridge.module(for: RCTAgoraRtcEngineModule.classForCoder()) as? RCTAgoraRtcEngineModule)?.engine
}

private func channel(_ channelId: String) -> AgoraRtcChannel? {
(bridge.module(for: RCTAgoraRtcChannelModule.classForCoder()) as? RCTAgoraRtcChannelModule)?.channel(channelId)
}
Expand All @@ -43,7 +43,7 @@ class RtcView: RtcSurfaceView {
func setEngine(_ getEngine: @escaping () -> AgoraRtcEngineKit?) {
self.getEngine = getEngine
}

func setChannel(_ getChannel: @escaping (_ channelId: String) -> AgoraRtcChannel?) {
self.getChannel = getChannel
}
Expand All @@ -60,7 +60,7 @@ class RtcView: RtcSurfaceView {
}
}

@objc func setMirroMode(_ mirrorMode: Int) {
@objc func setMirrorMode(_ mirrorMode: Int) {
if let engine = getEngine?() {
setMirroMode(engine, mirrorMode)
}
Expand Down
6 changes: 3 additions & 3 deletions ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManagerBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

@interface RCT_EXTERN_MODULE(RCTAgoraRtcSurfaceViewManager, NSObject)

RCT_EXPORT_VIEW_PROPERTY(renderMode, int)
RCT_EXPORT_VIEW_PROPERTY(renderMode, NSInteger)

RCT_EXPORT_VIEW_PROPERTY(channelId, NSString)

RCT_EXPORT_VIEW_PROPERTY(mirrorMode, int)
RCT_EXPORT_VIEW_PROPERTY(mirrorMode, NSInteger)

RCT_EXPORT_VIEW_PROPERTY(uid, int)
RCT_EXPORT_VIEW_PROPERTY(uid, NSInteger)

@end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-agora",
"version": "3.0.1-beta.2",
"version": "3.0.1-beta.3",
"description": "React Native around the Agora RTC SDKs for Android and iOS agora",
"summary": "agora native sdk for react-native",
"main": "lib/index.js",
Expand Down

0 comments on commit 462f500

Please sign in to comment.