Skip to content

Commit

Permalink
fix: Disable the logger if used on a web project (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbrazier authored Jul 29, 2021
1 parent bbaa1a9 commit 800c948
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/index.web.tsx
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 800c948

Please sign in to comment.