@aws-amplify/core
Version:
Core category of aws-amplify
16 lines (12 loc) • 462 B
text/typescript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { browserOrNode } from '../JS';
import { StorageHelper } from '../StorageHelper';
export const Linking = {};
export const AppState = {
addEventListener: (action, handler) => undefined,
};
// if not in react native, just use local storage
export const AsyncStorage = browserOrNode().isBrowser
? new StorageHelper().getStorage()
: undefined;