mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
Fix some typos in NativeComponentsIOS.md
Fixed some syntax errors and tidied up the sample code.
This commit is contained in:
parent
b99744a164
commit
0e3d627ff0
@ -87,7 +87,7 @@ class MapView extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
var RCTMap= requireNativeComponent('RCTMap', MapView);
|
||||
var RCTMap = requireNativeComponent('RCTMap', MapView);
|
||||
|
||||
MapView.propTypes = {
|
||||
/**
|
||||
@ -97,7 +97,7 @@ MapView.propTypes = {
|
||||
* angle is ignored and the map is always displayed as if the user
|
||||
* is looking straight down onto it.
|
||||
*/
|
||||
pitchEnabled = React.PropTypes.bool,
|
||||
pitchEnabled: React.PropTypes.bool,
|
||||
};
|
||||
|
||||
module.exports = MapView;
|
||||
@ -171,7 +171,7 @@ MapView.propTypes = {
|
||||
* angle is ignored and the map is always displayed as if the user
|
||||
* is looking straight down onto it.
|
||||
*/
|
||||
pitchEnabled = React.PropTypes.bool,
|
||||
pitchEnabled: React.PropTypes.bool,
|
||||
|
||||
/**
|
||||
* The region to be displayed by the map.
|
||||
@ -246,7 +246,7 @@ RCT_EXPORT_MODULE()
|
||||
{
|
||||
MKCoordinateRegion region = mapView.region;
|
||||
NSDictionary *event = @{
|
||||
@"target": [mapView reactTag],
|
||||
@"target": mapView.reactTag,
|
||||
@"region": @{
|
||||
@"latitude": @(region.center.latitude),
|
||||
@"longitude": @(region.center.longitude),
|
||||
|
Loading…
x
Reference in New Issue
Block a user