selvi jp

selvi jp

  • NA
  • 323
  • 78.9k

Delete row in react native

Sep 9 2021 7:31 AM

Hi ,

I can delete the row.But after delete i want to show rest row .So after delete i want to refresh the page.

  const deleteItem = item => {

    // Function for click on an item

    return Alert.alert(

      "Are your sure?",

      item.Group_Name+" "+"Are you sure you want to delete this Group?",

      [

   {

          text: "Yes",

          onPress: () => {

            fetch(url,

            { method: 'POST' })

             alert(item.Group_Name+);

       Here i want refresh after alert

          },

        },

          {

          text: "No",

        },

      ]

    );

 

}


Answers (1)