9 Implementing cross-platform APIs
This chapter covers
- Creating native application alert dialogs
- Detecting whether the app is in the foreground, background, or inactive
- Storing and updating text to the device clipboard
- Using geolocation to retrieve and use latitude, longitude, speed, and altitude of the user’s device
- Detecting device attributes such as the height and width of the screen and the connection type
One of the key benefits of using React Native is the ease with which native APIs can be accessed and used with JavaScript. In this chapter, we’ll cover most of the cross-platform APIs available in the framework. When accessing these APIs, you’ll be able to use a single codebase to implement platform-specific behavior on both iOS ...
Get React Native in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.