@beletsky/react-native-yandex-ads
Version:
14 lines • 700 B
JavaScript
import { NativeModules, Platform } from 'react-native';
// @ts-ignore
import RES from '../resources';
export const initialize = function () {
let isDebug = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
let userLocation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
let userConsent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
if (Platform.OS === 'android') {
if (NativeModules !== null && NativeModules !== void 0 && NativeModules[RES.MODULES.MAIN]) {
return NativeModules[RES.MODULES.MAIN].initialize(isDebug, userLocation, userConsent);
}
}
};
//# sourceMappingURL=initialize.js.map