While developing your React Native application, you may find yourself writing native Android modules to either create cross-platform features on both iOS and Android or to make use of native APIs that have not been wrapped as first-party modules for Android but that do exist on iOS. Hopefully, you found some useful advice on working with native modules in Chapter 11, Adding Native Functionality.
In this recipe, we will cover several techniques for speeding up our React Native Android native modules. Many of these techniques are limited to general development on Android, and a few will address communicating with the React Native JavaScript layer.