React Native Mar 22, 2018

Building Input Accessory View For React Native

Article Summary

After three years and countless '+1s' on GitHub, React Native finally solved one of iOS development's most requested features. Here's how the team built InputAccessoryView from scratch.

The React Native team tackled a long-standing feature request to expose iOS's native input accessory view API. This deep dive reveals the engineering decisions behind building a component that enables keyboard toolbars and sticky text inputs, two patterns essential for messaging apps like iMessage and WhatsApp.

Key Takeaways

Critical Insight

React Native v0.55.0 shipped InputAccessoryView by cleverly bridging React's component model with iOS's responder infrastructure, solving keyboard synchronization without relying on notification events.

The team's initial approach using NSNotificationCenter completely failed, leading to a frame synchronization bug that affected even major apps.

Recent from React Native

Related Articles