Add docs on testing.

This commit is contained in:
Spencer Ahrens
2015-03-24 20:42:00 -07:00
parent f9e5958862
commit c5c9b3c190
2 changed files with 25 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ title: Native Modules (iOS)
layout: docs
category: Guides
permalink: docs/nativemodulesios.html
next: activityindicatorios
next: testing
---
Sometimes an app needs access to platform API, and React Native doesn't have a corresponding wrapper yet. Maybe you want to reuse some existing Objective-C or C++ code without having to reimplement it in JavaScript. Or write some high performance, multi-threaded code such as image processing, network stack, database or rendering.
@@ -197,4 +197,3 @@ var subscription = DeviceEventEmitter.addListener(
subscription.remove();
```
For more examples of sending events to JavaScript, see [`RCTLocationObserver`](https://github.com/facebook/react-native/blob/master/Libraries/Geolocation/RCTLocationObserver.m).