Post

I was exploring a hard to debug memory leak in react native for at least 6 hours today. Turns out that when you don't add accessibilityLabel to RectButton or Pressable, it will fucking traverse all children to find a Text node or View with accessibilityLabel. This is insane. 1/4

I honestly never even thought about accessibility. We even use the NativeView and NativeText components directly to optimize performance by skipping all of that. We iterate so fast in startups, there’s no room for it until we have PMF.

> I honestly never even thought about accessibility. Probably why they did there best to make it accessible by default

I get that, but I believe the „how“ can be optimized

0 reposts0 likes

I just don't think it's gonna happen. The web works the way they implemented it for the most part and if nothing else RN is moving even more in line with web apis.