UNPKG

@appzung/react-native-code-push

Version:

React Native plugin for the CodePush service

18 lines (17 loc) 768 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resetClientUniqueId = void 0; var _NativeRNAppZungCodePushModule = require("./internals/NativeRNAppZungCodePushModule.js"); var _getConfiguration = require("./internals/getConfiguration.js"); /** * Resets the client's unique ID. You may use this in some GDPR compliance scenarios. Note that this will create a new MAU if a new request is sent later. */ const resetClientUniqueId = async () => { const newId = await _NativeRNAppZungCodePushModule.NativeRNAppZungCodePushModule.resetClientUniqueId(); await (0, _getConfiguration.reloadCachedConfiguration)(); return newId; }; exports.resetClientUniqueId = resetClientUniqueId; //# sourceMappingURL=resetClientUniqueId.js.map