react-native-firebase-chat-core
react-native-firebase-chat-core copied to clipboard
Can not create Room using `Id`
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?