Exposing Native Modules
• Create a new Library with the RN CLI
Slide 30
Slide 30 text
Exposing Native Modules
• Create a new Library with the RN CLI
• Linking your Library to a Project
Slide 31
Slide 31 text
Exposing Native Modules
• Create a new Library with the RN CLI
• Linking your Library to a Project
• Define your Methods in JS
Slide 32
Slide 32 text
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
Slide 33
Slide 33 text
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
Slide 34
Slide 34 text
New Library
Slide 35
Slide 35 text
New Library
Slide 36
Slide 36 text
Link your Library
Slide 37
Slide 37 text
Link your Library
react-native link*
Slide 38
Slide 38 text
Link your Library
react-native link*
Slide 39
Slide 39 text
JavaScript Methods
Slide 40
Slide 40 text
JavaScript Methods
Slide 41
Slide 41 text
Native Methods
Slide 42
Slide 42 text
Native Methods
Slide 43
Slide 43 text
Implementation
Slide 44
Slide 44 text
Implementation
Slide 45
Slide 45 text
Using your Library
Slide 46
Slide 46 text
Using your Library
Slide 47
Slide 47 text
Using your Library
Slide 48
Slide 48 text
Helpful Tools
Slide 49
Slide 49 text
Helpful Tools
• RCTConvert for converting Types
Slide 50
Slide 50 text
Helpful Tools
• RCTConvert for converting Types
• RCTUtils for error handling
Slide 51
Slide 51 text
Helpful Tools
• RCTConvert for converting Types
• RCTUtils for error handling
• Sending Events to JavaScript
Slide 52
Slide 52 text
Helpful Tools
• RCTConvert for converting Types
• RCTUtils for error handling
• Sending Events to JavaScript
• Export Constants to avoid bridge
round-trips
Slide 53
Slide 53 text
Helpful Tools
• RCTConvert for converting Types
• RCTUtils for error handling
• Sending Events to JavaScript
• Export Constants to avoid bridge
round-trips
• Apple Developer Documentation