Merge pull request #1072 from facebook/ide-patch-1

Fix some typos in NativeComponentsIOS.md
This commit is contained in:
Nick Lockwood 2015-04-30 15:21:36 +01:00
commit f8a4467b7d
1 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ class MapView extends React.Component {
} }
} }
var RCTMap= requireNativeComponent('RCTMap', MapView); var RCTMap = requireNativeComponent('RCTMap', MapView);
MapView.propTypes = { MapView.propTypes = {
/** /**
@ -97,7 +97,7 @@ MapView.propTypes = {
* angle is ignored and the map is always displayed as if the user * angle is ignored and the map is always displayed as if the user
* is looking straight down onto it. * is looking straight down onto it.
*/ */
pitchEnabled = React.PropTypes.bool, pitchEnabled: React.PropTypes.bool,
}; };
module.exports = MapView; module.exports = MapView;
@ -171,7 +171,7 @@ MapView.propTypes = {
* angle is ignored and the map is always displayed as if the user * angle is ignored and the map is always displayed as if the user
* is looking straight down onto it. * is looking straight down onto it.
*/ */
pitchEnabled = React.PropTypes.bool, pitchEnabled: React.PropTypes.bool,
/** /**
* The region to be displayed by the map. * The region to be displayed by the map.
@ -246,7 +246,7 @@ RCT_EXPORT_MODULE()
{ {
MKCoordinateRegion region = mapView.region; MKCoordinateRegion region = mapView.region;
NSDictionary *event = @{ NSDictionary *event = @{
@"target": [mapView reactTag], @"target": mapView.reactTag,
@"region": @{ @"region": @{
@"latitude": @(region.center.latitude), @"latitude": @(region.center.latitude),
@"longitude": @(region.center.longitude), @"longitude": @(region.center.longitude),