I have added badges in react native stack navigator for cart and wish-list count. These counts must be fetched from API on every screen change or back event. I also want to update these count on "add to cart" and "add to wish-list" event from Product screen.
Can anyone suggests me how to do this ? Any reference code or article will be very helpful.
Thanks in Advance.