i am using ionic react and struggling on how to use calcWidth to get the width dynamically. Currently i am using something like below
width={310}