mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-18 20:26:19 +08:00
Add docs on testing.
This commit is contained in:
@@ -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).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user