Fix buck error

Reviewed By: idevelop

Differential Revision: D2699529

fb-gh-sync-id: d71a5abf04b767a58dd6f054a88a8bf0c561aa8d
This commit is contained in:
Nick Lockwood 2015-11-26 05:39:28 -08:00 committed by facebook-github-bot-5
parent bf0934a531
commit 4b6b71664e
1 changed files with 2 additions and 1 deletions

View File

@ -14,8 +14,8 @@
var EdgeInsetsPropType = require('EdgeInsetsPropType');
var Image = require('Image');
var NativeMethodsMixin = require('NativeMethodsMixin');
var PinColors = require('NativeModules').UIManager.RCTMap.Constants.PinColors;
var Platform = require('Platform');
var RCTMapConstants = require('NativeModules').UIManager.RCTMap.Constants;
var React = require('React');
var ReactNativeViewAttributes = require('ReactNativeViewAttributes');
var View = require('View');
@ -320,6 +320,7 @@ var MapView = React.createClass({
* `annotation.tintColor` property. You are not obliged to use these,
* but they are useful for matching the standard iOS look and feel.
*/
let PinColors = RCTMapConstants && RCTMapConstants.PinColors;
MapView.PinColors = PinColors && {
RED: PinColors.RED,
GREEN: PinColors.GREEN,