Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Exposing Native Modules with React Native

Naoufal Kadhom
September 15, 2016

Exposing Native Modules with React Native

A deep dive into exposing Native Modules with React Native. We'll learn how to build libraries that expose native functionality and how to use them in our applications. Along the way, we'll identify best practices, helpful resources and understand why the Native Modules API might be React Native's most important feature.

Supporting videos for these slides are available at https://www.youtube.com/playlist?list=PLpW5mhrbAJliS_gRGaez78tAdk1wXh2aA

Event: React Montreal
Location: Mobeewave

Naoufal Kadhom

September 15, 2016
Tweet

More Decks by Naoufal Kadhom

Other Decks in Technology

Transcript

  1. Exposing Native Modules • Create a new Library with the

    RN CLI • Linking your Library to a Project
  2. Exposing Native Modules • Create a new Library with the

    RN CLI • Linking your Library to a Project • Define your Methods in JS
  3. Exposing Native Modules • Create a new Library with the

    RN CLI • Linking your Library to a Project • Define your Methods in JS • Match those Methods in Native
  4. Exposing Native Modules • Create a new Library with the

    RN CLI • Linking your Library to a Project • Define your Methods in JS • Match those Methods in Native • Implement the code
  5. Helpful Tools • RCTConvert for converting Types • RCTUtils for

    error handling • Sending Events to JavaScript
  6. Helpful Tools • RCTConvert for converting Types • RCTUtils for

    error handling • Sending Events to JavaScript • Export Constants to avoid bridge round-trips
  7. Helpful Tools • RCTConvert for converting Types • RCTUtils for

    error handling • Sending Events to JavaScript • Export Constants to avoid bridge round-trips • Apple Developer Documentation