I created a custom component that works great when the width is specified. However, when I try to set the width to a percent (of the parent) it returns 0. How to I reference the parent's width? I tried getExplicitOrMeasuredWidth but it didn't work.
Thanks in advance for the help.

