So I have this:
let total = newDealersDeckTotal.reduce(function(a, b) { return a + b; }, 0); console.log(total, \'t
just add componentDidUpdate(){} method in your code, and it will work. you can check the life cycle of react native here:
componentDidUpdate(){}
https://images.app.goo.gl/BVRAi4ea2P4LchqJ8