DEV Community

loading...

Update Badge in React Native Stack Navigator Header

mohitmehta1996 profile image mohitmehta1996 ・1 min read

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.

Discussion (0)

pic
Editor guide