Browse Source

Update README.md

少言 7 years ago
parent
commit
a43ccb4076
1 changed files with 9 additions and 6 deletions
  1. 9
    6
      README.md

+ 9
- 6
README.md View File

@@ -28,14 +28,21 @@ TARGETS->Build Phases-> Link Binary With Libaries中点击“+”按钮,选择
28 28
     CoreMotion.framework
29 29
     CoreMedia.framework
30 30
     CoreTelephony.framework
31
+    
31 32
 TARGETS->Build Phases-> Link Binary With Libaries中点击“+”按钮,在弹出的窗口中点击“Add Other”按钮,选择
33
+
32 34
     node_modules/react-native-agora/ios/RCTAgora/libs/libcrypto.a
33 35
     node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework
34 36
     node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcEngineKit.framework
37
+    
35 38
 TARGETS->Build Settings->Search Paths->Framework Search Paths添加
39
+
36 40
     "$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
41
+    
37 42
 TARGETS->Build Settings->Search Paths->Library Search Paths添加
43
+
38 44
     "$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
45
+    
39 46
 TARGETS->Build Settings->Enable Bitcode设置为No
40 47
 
41 48
 TARGETS->Capabilities->Background Modes->Modes勾选Audio,AirPlay,and Picture In Picture
@@ -153,7 +160,7 @@ export default class Meeting extends Component {
153 160
 
154 161
         //初始化Agora
155 162
         const options = {
156
-            appid: '',
163
+            appid: '前往Agora官网进行申请--https://www.agora.io/cn/',
157 164
             channelProfile: 1,
158 165
             videoProfile: 40,
159 166
             clientRole: 1,
@@ -227,11 +234,7 @@ export default class Meeting extends Component {
227 234
     }
228 235
 
229 236
     handlerCancel = () => {
230
-
231 237
         RtcEngine.leaveChannel();
232
-
233
-        const {navigator} = this.props;
234
-        navigator.pop()
235 238
     };
236 239
 
237 240
     handlerSwitchCamera = () => {
@@ -351,4 +354,4 @@ const styles = StyleSheet.create({
351 354
         justifyContent: 'space-around'
352 355
     }
353 356
 });
354
-```
357
+```