Select-Unselect Function This function is written in javascript and can be used to select/unselect or add/remove an item from an array. In this react-native is used for refrence where useState() is used to change the list of selected Items.