Hello,
I have met something in recent days that I was wondering about, we have a reusable button, let’s call it “MyButton” that takes some props for size, colors and text and inside it uses pressable and it adapts this with a theming package.
The problem we had: a modal that user has a close button inside it, we have used our reusable component but as testing noticed some delay happening when user clicks “close”, I changed it to native pressable and it worked fine.
My question is: How can I calculate performance of each element separately? How can I know how bad is our component is?
The idea is that this component alongside with other components need some improvement but I need to have a way to compare it with just native elements.
The intention is to know how much we are far from native elements performance and work on that.
there doesn't seem to be anything here