Fix some typos in NativeComponentsIOS.md

Fixed some syntax errors and tidied up the sample code.
This commit is contained in:
James Ide 2015-04-30 00:39:37 -07:00
parent b99744a164
commit 0e3d627ff0
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),