1.0.10 • Published 3 years ago

harel-rn-server-logger v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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>
  );
};
1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago