From 4b6b71664ecdb9a7888bf45f46f673bcce613579 Mon Sep 17 00:00:00 2001 From: Nick Lockwood Date: Thu, 26 Nov 2015 05:39:28 -0800 Subject: [PATCH] Fix buck error Reviewed By: idevelop Differential Revision: D2699529 fb-gh-sync-id: d71a5abf04b767a58dd6f054a88a8bf0c561aa8d --- Libraries/Components/MapView/MapView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/Components/MapView/MapView.js b/Libraries/Components/MapView/MapView.js index 26cd3f61e..b0468e187 100644 --- a/Libraries/Components/MapView/MapView.js +++ b/Libraries/Components/MapView/MapView.js @@ -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,