Fix buck error
Reviewed By: idevelop Differential Revision: D2699529 fb-gh-sync-id: d71a5abf04b767a58dd6f054a88a8bf0c561aa8d
This commit is contained in:
parent
bf0934a531
commit
4b6b71664e
|
@ -14,8 +14,8 @@
|
||||||
var EdgeInsetsPropType = require('EdgeInsetsPropType');
|
var EdgeInsetsPropType = require('EdgeInsetsPropType');
|
||||||
var Image = require('Image');
|
var Image = require('Image');
|
||||||
var NativeMethodsMixin = require('NativeMethodsMixin');
|
var NativeMethodsMixin = require('NativeMethodsMixin');
|
||||||
var PinColors = require('NativeModules').UIManager.RCTMap.Constants.PinColors;
|
|
||||||
var Platform = require('Platform');
|
var Platform = require('Platform');
|
||||||
|
var RCTMapConstants = require('NativeModules').UIManager.RCTMap.Constants;
|
||||||
var React = require('React');
|
var React = require('React');
|
||||||
var ReactNativeViewAttributes = require('ReactNativeViewAttributes');
|
var ReactNativeViewAttributes = require('ReactNativeViewAttributes');
|
||||||
var View = require('View');
|
var View = require('View');
|
||||||
|
@ -320,6 +320,7 @@ var MapView = React.createClass({
|
||||||
* `annotation.tintColor` property. You are not obliged to use these,
|
* `annotation.tintColor` property. You are not obliged to use these,
|
||||||
* but they are useful for matching the standard iOS look and feel.
|
* but they are useful for matching the standard iOS look and feel.
|
||||||
*/
|
*/
|
||||||
|
let PinColors = RCTMapConstants && RCTMapConstants.PinColors;
|
||||||
MapView.PinColors = PinColors && {
|
MapView.PinColors = PinColors && {
|
||||||
RED: PinColors.RED,
|
RED: PinColors.RED,
|
||||||
GREEN: PinColors.GREEN,
|
GREEN: PinColors.GREEN,
|
||||||
|
|
Loading…
Reference in New Issue