ttdatt / react-native-video-quickblox

Quickblox video calling React Native package
MIT License
12 stars 5 forks source link

API Docs #1

Open tiendn opened 6 years ago

tiendn commented 6 years ago

Hi, Dat Tran.

Thank you for creating this lib. But it's very difficult for me to read and understand it. Can you write api docs?

ttdatt commented 6 years ago

I will add api doc later, but you can use sample here as reference https://github.com/ttdat89/react-native-video-quickblox/tree/master/example/TestLibQuickblox

tiendn commented 6 years ago

Hi, Dat.

Can you guide me how to add the contact by quickblox. I can't find any api in your native code about contact.

Thank you.

ttdatt commented 6 years ago

Here you are https://github.com/ttdat89/react-native-video-quickblox/blob/master/ios/QuickbloxHandler.m

https://github.com/ttdat89/react-native-video-quickblox/blob/master/android/src/main/java/com/sts/RNQuickblox/QuickbloxHandler.java

tiendn commented 6 years ago

Thank you, but as I see, it's native codes and not export to React. And I don't know Obj-C and also Android :)) Can you help me 👍

ttdatt commented 6 years ago

You can read js code in my example https://github.com/ttdat89/react-native-video-quickblox/tree/master/example/TestLibQuickblox

Anw, did you build and run example code? You should try run example project before reading the code

tiendn commented 6 years ago

I have tried. And, it works 👍

But when I call from iOS device to Android device, it crashes.

Anyway, thank you.