Native Modules and Components

M. Holmes He · Apress eBooks · 2022

In this chapter, we are going to program majorly in the native layer using the languages of native platforms. Wait, isn’t React Native a cross-platform that eliminates all needs of native development? True and false. Indeed, the React Native core bridges the native rendering system so the UI layout can be carried out on the JavaScript layer, like what we have accomplished in the previous chapters. Native layer programming comes into play when our app needs to access advanced functionalities (e.g., geolocation) or requires specialized rendering systems (e.g., SVG). For that purpose, React Native provides two ways – native modules and native components . A plethora of third-party projects have created native modules and native components catering for most of the commonly used functionalities. So in most cases, we just need to import them as dependencies to fit our needs. And this is for free. However, it is ideal for React Native developers to master a certain level of native programming, preparing for very specialized requirements and challenges that haven’t been resolved yet. In this chapter, we are going to equip you with the technique by fully examining and discussing this native programming on both iOS and Android .

Cited by 3 works. doi:10.1007/978-1-4842-8042-3_4

Authors