mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
Fix buck error
Reviewed By: idevelop Differential Revision: D2699529 fb-gh-sync-id: d71a5abf04b767a58dd6f054a88a8bf0c561aa8d
This commit is contained in:
committed by
facebook-github-bot-5
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user