react-native-firebase-chat-core icon indicating copy to clipboard operation
react-native-firebase-chat-core copied to clipboard

Can not create Room using `Id`

Open Meetcpatel opened this issue 3 years ago • 0 comments

Hello!

I am facing issue with creating room.

I used sign in with phone number.

const confirmation = await auth().signInWithPhoneNumber(phoneNumber);

And getting user

const {firebaseUser} = useFirebaseUser();

and creating room

let U = { "id": firebaseUser?.uid };

createRoom(U).then((res:any)=>{console.log("res",res); }).catch((err: any) => { console.log(err); })

but I received error

[TypeError: undefined is not an object (evaluating 'data.createdAt')]

Can anyone help to fix this?

Meetcpatel avatar Mar 14 '22 05:03 Meetcpatel