79183591

Date: 2024-11-13 06:07:52
Score: 1
Natty:
Report link
    const handleSubmit = () => {
    const isEditorEmpty = editorData?.replace(/<\/?[^>]+(>|$)/g, "").trim() === '';

    if (isEditorEmpty) {
        Alert.alert("Post", "Please add content and image or video for post")
        return
    }

    console.log("Editor data", editorData);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: PRAMOD SAVANT