Fixed Flow errors

Reviewed By: nicklockwood

Differential Revision: D2773940

fb-gh-sync-id: 3d632c57c411ddaf428c1d96d145da62dd115a14
This commit is contained in:
glevi@fb.com
2015-12-18 11:16:40 -08:00
committed by facebook-github-bot-9
parent 57a76c0c01
commit dc6ca95c3a
2 changed files with 57 additions and 18 deletions

View File

@@ -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={{