UNPKG

@react-native-kakao/core

Version:

React Native Kakao Core SDK

21 lines (20 loc) 818 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const config_plugins_1 = require("expo/config-plugins"); const withAndroid_1 = require("./withAndroid"); const withIos_1 = require("./withIos"); const withKakao = (config, { nativeAppKey, android, ios }) => { if (!nativeAppKey) { throw new Error("[@react-native-kakao/core] 'nativeAppKey' missing in expo config plugin value"); } if (android) { config = (0, withAndroid_1.withAndroid)(config, { android, nativeAppKey }); } if (ios) { config = (0, withIos_1.withIos)(config, { ios, nativeAppKey }); } return config; }; // @ts-ignore const pkg = require('@react-native-kakao/core/package.json'); exports.default = (0, config_plugins_1.createRunOncePlugin)(withKakao, pkg.name, pkg.version);