Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Error on Reloading Changes in iOS development Pod for react Native

$
0
0

I am making some changes in a third party pods for react native app. I added a function in the pod and add to the RCT_EXTERN_MODULE using RCT_EXTERN_METHOD. But it is showing error when I reload the app.

Code:

@objc func enableLocalVideoRecording() {    // Do my stuff here}
RCT_EXTERN_METHOD(enableLocalVideoRecording)

In React native code

await newRtcEngine.enableLocalVideoRecording()await newRtcEngine.enableVideo()await newRtcEngine.joinChannel(null, channelId, null, 0)

If I comment the line await newRtcEngine.enableLocalVideoRecording() it runs correctly. enableVideo and joinChannel are in same file as of enableLocalVideoRecording.

Do I have to start yarn again?


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>