# harel-rn-server-logger

> A React-Native module for tracking server traffic, present it in-app and export it (designed for Harel testers)

Latest version **1.0.10** (published 2021-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install harel-rn-server-logger
pnpm add harel-rn-server-logger
yarn add harel-rn-server-logger
bun add harel-rn-server-logger
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2021-05-06 |
| First published | 2021-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | YossiGreen |
| Maintainers | yossigreen |

## Links

- npm: https://www.npmjs.com/package/harel-rn-server-logger
- Repository: https://github.com/greenyossi/harel-rn-server-logger
- Homepage: https://github.com/greenyossi/harel-rn-server-logger#readme
- Issues: https://github.com/greenyossi/harel-rn-server-logger/issues
- npm.io page: https://npm.io/package/harel-rn-server-logger

## Recent versions

- 1.0.10 (latest) — 2021-05-06
- 1.0.9 — 2021-05-06
- 1.0.8 — 2021-03-07
- 1.0.7 — 2021-03-07
- 1.0.6 — 2021-03-07
- 1.0.5 — 2021-03-07
- 1.0.4 — 2021-03-07
- 1.0.3 — 2021-03-07
- 1.0.2 — 2021-03-07
- 1.0.0 — 2021-03-07

## README

# harel-rn-server-logger
A React-Native module for tracking server traffic, present it in-app and export it (designed for Harel testers)

## Quick start

#### 1. Install the module dependencies using [Yarn](https://yarnpkg.com)
```shell
yarn add react-native-shake react-native-fs react-native-share axios-inherit moment 
cd ios && pod install
```

#### 2. Add before the *FIRST* usage of axios.create the following code at the top of the file (after the import of axios):
```shell
const axiosInherit = require('axios-inherit');
axiosInherit(axios);
```

#### 3. Add the HarelServerLogger component to the App component and make sure to render it only in test env, for example:
```shell
const App = () => {
  return (
    <View style={styles.container}>
      <Provider store={store}>
        <NavigationContainer>
          <Root />
        </NavigationContainer>
      </Provider>
      
      {TEST_ENV_FLAG && <HarelServerLogger />}
    </View>
  );
};

```

---
_Source: https://npm.io/package/harel-rn-server-logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
