@launchdarkly/react-native-client-sdk
Version:
React Native LaunchDarkly SDK
14 lines • 611 B
JavaScript
import PlatformCrypto from './crypto';
import PlatformEncoding from './PlatformEncoding';
import PlatformInfo from './PlatformInfo';
import PlatformRequests from './PlatformRequests';
import PlatformStorage from './PlatformStorage';
const createPlatform = (logger, options, storage) => ({
crypto: new PlatformCrypto(),
info: new PlatformInfo(logger, options),
requests: new PlatformRequests(logger),
encoding: new PlatformEncoding(),
storage: storage !== null && storage !== void 0 ? storage : new PlatformStorage(logger),
});
export default createPlatform;
//# sourceMappingURL=index.js.map