From 800c94872219922c35a633fa53046fd43a29a09b Mon Sep 17 00:00:00 2001 From: Alex Brazier Date: Thu, 29 Jul 2021 19:45:20 +0100 Subject: [PATCH] fix: Disable the logger if used on a web project (#53) --- src/index.web.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/index.web.tsx diff --git a/src/index.web.tsx b/src/index.web.tsx new file mode 100644 index 0000000..af04354 --- /dev/null +++ b/src/index.web.tsx @@ -0,0 +1,16 @@ +import { StartNetworkLoggingOptions } from './types'; + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +export const startNetworkLogging = (options?: StartNetworkLoggingOptions) => { + console.warn('startNetworkLogging is not implemented on this platform'); +}; + +export const getRequests = () => []; + +export const clearRequests = () => {}; + +export { getBackHandler } from './backHandler'; + +export { ThemeName } from './theme'; + +export default () => null;