Skip to content

Commit

Permalink
fix: exported component issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbrazier committed Jun 19, 2020
1 parent 227a931 commit 098f941
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "An HTTP traffic monitor for React Native with zero dependencies",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"react-native": "src/index.ts",
"react-native": "src/index.tsx",
"types": "lib/typescript/src/index.d.ts",
"repository": {
"type": "git",
Expand Down
4 changes: 1 addition & 3 deletions src/NetworkLogger.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import React, { useEffect, useState } from 'react';
import { View, StyleSheet, FlatList } from 'react-native';
import Logger from './Logger';
import logger from './loggerSingleton';
import ResultItem from './ResultItem';
import { colors } from './theme';
import RequestDetails from './RequestDetails';
import type NetworkRequestInfo from './NetworkRequestInfo';

const logger = new Logger();

const NetworkLogger = () => {
const [requests, setRequests] = useState(logger.getRequests());
const [request, setRequest] = useState<NetworkRequestInfo>();
Expand Down

0 comments on commit 098f941

Please sign in to comment.