Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

harel-rn-server-logger

greenyossi11MIT1.0.10TypeScript support: included

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

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

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):

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:

const App = () => {
  return (
    <View style={styles.container}>
      <Provider store={store}>
        <NavigationContainer>
          <Root />
        </NavigationContainer>
      </Provider>

      {TEST_ENV_FLAG && <HarelServerLogger />}
    </View>
  );
};