ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
124 stars 111 forks source link

How can I start a call without AuthScreen and UsersSelect? #194

Closed tahademirer closed 3 years ago

tahademirer commented 3 years ago

Hi! I have a little question. I don't have much experince in JavaScript yet. In my project, I have my own user model which holds the ConnectyCube user ID. And I also have an appointment model which holds both callee's Connectycube Id's. My system uses Firebase for authenticate the users and Custom Identity Provider support is done. Which means I don't need the AuthScreen and It's login actions in your sample project. I completely copied your sample project to my project. The problem is, I don't want to select any users. I only want to start a call between the two users in appointment object when my user clicks the button in appointment screen. I can access my user's ConnectyCube ID from redux store.

I couldn't remove the AuthScreen and UsersSelect components. How can I make the one click and call action?

Thanks!

This is what my user model looks like:

user = {
ccid : 1234
name: taha
.....

} 

And this is what my Appointment model looks like :

appointment = {
menteeId: 1234
mentorId: 5678
date: .....
.....

}
tahademirer commented 3 years ago

Any suggestions?