@react-native-kakao/map
Version:
React Native Kakao Map SDK
38 lines (37 loc) • 1.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.KakaoMap = void 0;
Object.defineProperty(exports, "KakaoMapView", {
enumerable: true,
get: function () {
return _KakaoMapView.KakaoMapView;
}
});
exports.default = void 0;
var _reactNative = require("react-native");
var _KakaoMapView = require("./component/KakaoMapView");
const LINKING_ERROR = "The package '@react-native-kakao/map' doesn't seem to be linked. Make sure: \n\n" + _reactNative.Platform.select({
ios: "- You have run 'pod install'\n",
default: ''
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
const isTurboModuleEnabled = global.__turboModuleProxy != null;
if (!isTurboModuleEnabled) {
throw new Error('The package @react-native-kakao/map only supports fabric');
}
const Module = require('./spec/NativeKakaoMap').default;
const Native = Module ? Module : new Proxy({}, {
get() {
throw new Error(LINKING_ERROR);
}
});
// todo remove
console.log(Native);
const KakaoMap = exports.KakaoMap = {
initializeKakaoMapSDK: async appKey => {
return await Native.initializeKakaoMapSDK(appKey);
}
};
var _default = exports.default = _KakaoMapView.KakaoMapView;
//# sourceMappingURL=index.js.map