Summary
Though React Native gives us access to many native visual components and APIs, there are some situations where we need direct access to the native code. To do this, we can either find an open source module that has been written to solve our problem or we can write our own. Writing native modules requires knowledge of the native ecosystem and language.
It is important to note that the native module we developed in this chapter is not production ready. If we were writing this module for production, we would need to add sufficient error handling and configuration options. Luckily, there are open source alternatives that we can use to select images and videos from the native media library.
In the next chapter, we'll take our application and begin preparing it for production. Specifically, we'll look at testing React Native applications, running them on real devices, performance optimizations, and deploying them to app stores.