Skip to content

Commit

Permalink
Update link in Native UI Components (iOS) guide
Browse files Browse the repository at this point in the history
Update the event mapping link: update line number
  • Loading branch information
umhan35 committed May 13, 2015
1 parent e0adedd commit 85a6734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/NativeComponentsIOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85a6734

Please sign in to comment.