aws-samples / amazon-chime-react-native-demo

A React Native demo application for Android and iOS using the Amazon Chime SDK.
MIT No Attribution
100 stars 24 forks source link

Issue: New NativeEventEmitter requires a non-null argument #172

Closed sambeetsahu closed 1 year ago

sambeetsahu commented 1 year ago

Describe the bug

Getting issue while following the steps what was mentioned on the readme file for ios app chime integration. I copy the files that are required for bridging in my ios folder. And added the permission info.plist and as well as added the line pod 'AmazonChimeSDK-Bitcode', '0.19.1' to pod file as well but while running the app and loading the screen its hows New NativeEventEmmiter requires a non-null argument error as shown in the image

Simulator Screen Shot - iPhone 13 - 2023-01-19 at 19 25 40

Additional context I run this demo repo and its working fine only while implementing in my project giving error. The version of react and react studio is same as in the demo app ..

Please help me resolving the issue please

hokyungh commented 1 year ago

Hi do you mind providing minimal repo that causes this issue since you said demo is working, but not your project, it might be some dependencies.

sambeetsahu commented 1 year ago

Hi @hokyungh here is the url https://github.com/sambeetsahu/ioschime

hokyungh commented 1 year ago

Hi @sambeetsahu , I have looked at the code and it seems that you did not add m and h files to xcode project. See the code you have vs our code. Try to open Xcode project and add these files.

hokyungh commented 1 year ago

Feel free to reopen if you still have issue after adding files.

sambeetsahu commented 1 year ago

Hi @sambeetsahu , I have looked at the code and it seems that you did not add m and h files to xcode project. See the code you have vs our code. Try to open Xcode project and add these files.

Hi @hokyungh i have copy and paste the .m file and .h file to the ios folder directly.. becuse of that i guess the refrrence of the file is not showing as u highlighted in that file m and h files are missing

Can you please guide me the steps to create this m and h files in xcode .. that will be helpfull

sambeetsahu commented 1 year ago

Thanks @hokyungh finally it got resolved.

yashukla47 commented 1 year ago

Hey @sambeetsahu how did you resolve it?

sambeetsahu commented 1 year ago

@yashukla47 I am guessing u are also doing the same thing like copy and paste the file directly in to the ios folder. if you do like this then the file reference will not added as mentioned above in message thread. So you need to create first header file and empty file for (.m file) inside the ios/your project folder for header file and .m file