Check out example codes for "delete one item from list recycleview". It will help you in understanding the concepts better.

Code Example 1

holder.delete.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            openHelper.deleteProduct(shoppingCart.getId());
            shoppingCartList.remove(position);
            notifyItemRemoved(position);
        }
    });

Learn ReactJs, React Native from akashmittal.com