Advanced ReactNative ListingDetailsScreen contactSeller form onSubmit error


the error i am facing here is that await has no effect on the expression somebody please help!!

on submitting the form it says typeError undefined is not object evaluating result.ok

Blockquote const result = await messagesApi.send(message, listing.id);

if (!result.ok) { 
  console.log("Error", result);
  return Alert.alert("Error", "Could not send the message to the seller.");
}

oh! it was a typo in my messageapi .

Hello, Iā€™m getting the same error. What exactly did you fix?

1 Like

I am also getting same error