From 85a67343878c5b305e241d48f71083f19af725ba Mon Sep 17 00:00:00 2001 From: Zhao Han Date: Wed, 13 May 2015 10:08:38 -0500 Subject: [PATCH] Update link in Native UI Components (iOS) guide Update the event mapping link: update line number --- docs/NativeComponentsIOS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/NativeComponentsIOS.md b/docs/NativeComponentsIOS.md index 9f70e188cbd680..e15a6ef7e8fc05 100644 --- a/docs/NativeComponentsIOS.md +++ b/docs/NativeComponentsIOS.md @@ -258,7 +258,7 @@ RCT_EXPORT_MODULE() } ``` -You can see we're setting the manager as the delegate for every view that it vends, then in the delegate method `-mapView:regionDidChangeAnimated:` the region is combined with the `reactTag` target to make an event that is dispatched to the corresponding React component instance in your application via `sendInputEventWithName:body:`. The event name `@"topChange"` maps to the `onChange` callback prop in JavaScript (mappings are [here](https://github.com/facebook/react-native/blob/master/React/Modules/RCTUIManager.m#L1146)). This callback is invoked with the raw event, which we typically process in the wrapper component to make a simpler API: +You can see we're setting the manager as the delegate for every view that it vends, then in the delegate method `-mapView:regionDidChangeAnimated:` the region is combined with the `reactTag` target to make an event that is dispatched to the corresponding React component instance in your application via `sendInputEventWithName:body:`. The event name `@"topChange"` maps to the `onChange` callback prop in JavaScript (mappings are [here](https://github.com/facebook/react-native/blob/master/React/Modules/RCTUIManager.m#L1165)). This callback is invoked with the raw event, which we typically process in the wrapper component to make a simpler API: ```javascript // MapView.js