O'Reilly logo

React Native in Action by nader dabit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required