Over the last few years, Android native UI performance has improved significantly. This is primarily due to its ability to render components and layouts using GPU hardware acceleration. In your React Native app, you may find yourself using custom view components, especially if you want to use a built-in Android feature that has not yet been wrapped as a React Native component. Even though the Android platform has made a conscious effort to increase the performance of its UI, the way components are rendered can quickly negate all of these benefits.
In this recipe, we'll discuss a few ways to get the best performance out of our custom Android view components.