mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Fixed Flow errors
Reviewed By: nicklockwood Differential Revision: D2773940 fb-gh-sync-id: 3d632c57c411ddaf428c1d96d145da62dd115a14
This commit is contained in:
committed by
facebook-github-bot-9
parent
57a76c0c01
commit
dc6ca95c3a
@@ -26,12 +26,6 @@ const resolveAssetSource = require('resolveAssetSource');
|
||||
const requireNativeComponent = require('requireNativeComponent');
|
||||
|
||||
type Event = Object;
|
||||
type MapRegion = {
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
latitudeDelta?: number;
|
||||
longitudeDelta?: number;
|
||||
};
|
||||
|
||||
const MapView = React.createClass({
|
||||
mixins: [NativeMethodsMixin],
|
||||
@@ -155,14 +149,14 @@ const MapView = React.createClass({
|
||||
*/
|
||||
title: React.PropTypes.string,
|
||||
subtitle: React.PropTypes.string,
|
||||
|
||||
|
||||
/**
|
||||
* Callout views.
|
||||
*/
|
||||
leftCalloutView: React.PropTypes.element,
|
||||
rightCalloutView: React.PropTypes.element,
|
||||
detailCalloutView: React.PropTypes.element,
|
||||
|
||||
|
||||
/**
|
||||
* The pin color. This can be any valid color string, or you can use one
|
||||
* of the predefined PinColors constants. Applies to both standard pins
|
||||
@@ -191,7 +185,7 @@ const MapView = React.createClass({
|
||||
* annotation id
|
||||
*/
|
||||
id: React.PropTypes.string,
|
||||
|
||||
|
||||
/**
|
||||
* Deprecated. Use the left/right/detailsCalloutView props instead.
|
||||
*/
|
||||
@@ -286,7 +280,7 @@ const MapView = React.createClass({
|
||||
rightCalloutView,
|
||||
detailCalloutView,
|
||||
} = annotation;
|
||||
|
||||
|
||||
if (!view && image && tintColor) {
|
||||
view = <Image
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user