Skip to content

Commit 0e3d627

Browse files
author
James Ide
committed
Fix some typos in NativeComponentsIOS.md
Fixed some syntax errors and tidied up the sample code.
1 parent b99744a commit 0e3d627

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/NativeComponentsIOS.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class MapView extends React.Component {
8787
}
8888
}
8989

90-
var RCTMap= requireNativeComponent('RCTMap', MapView);
90+
var RCTMap = requireNativeComponent('RCTMap', MapView);
9191

9292
MapView.propTypes = {
9393
/**
@@ -97,7 +97,7 @@ MapView.propTypes = {
9797
* angle is ignored and the map is always displayed as if the user
9898
* is looking straight down onto it.
9999
*/
100-
pitchEnabled = React.PropTypes.bool,
100+
pitchEnabled: React.PropTypes.bool,
101101
};
102102

103103
module.exports = MapView;
@@ -171,7 +171,7 @@ MapView.propTypes = {
171171
* angle is ignored and the map is always displayed as if the user
172172
* is looking straight down onto it.
173173
*/
174-
pitchEnabled = React.PropTypes.bool,
174+
pitchEnabled: React.PropTypes.bool,
175175

176176
/**
177177
* The region to be displayed by the map.
@@ -246,7 +246,7 @@ RCT_EXPORT_MODULE()
246246
{
247247
MKCoordinateRegion region = mapView.region;
248248
NSDictionary *event = @{
249-
@"target": [mapView reactTag],
249+
@"target": mapView.reactTag,
250250
@"region": @{
251251
@"latitude": @(region.center.latitude),
252252
@"longitude": @(region.center.longitude),

0 commit comments

Comments
 (0)