improvements #1

Merged
imranMnts merged 39 commits from feat/improvements into develop 2020-04-16 07:10:32 +00:00
imranMnts commented 2020-04-09 11:50:35 +00:00 (Migrated from github.com)
  • add js exception handler
  • add crash report services
  • improve init function
  • add unit tests
- add js exception handler - add crash report services - improve init function - add unit tests
mvspike (Migrated from github.com) reviewed 2020-04-13 09:36:55 +00:00
@ -1,12 +1,46 @@
# react-native-logging
# React Native Logging Tools
mvspike (Migrated from github.com) commented 2020-04-13 08:50:23 +00:00

Typo: remove "to" at the end

Typo: remove "to" at the end
mvspike (Migrated from github.com) commented 2020-04-13 08:51:47 +00:00

I would say: "Plug multiple analytics libraries (<-link to the list below->) to your project"

I would say: "Plug multiple analytics libraries (<-link to the list below->) to your project"
@ -10,3 +43,4 @@
---
## Usage
mvspike (Migrated from github.com) commented 2020-04-13 08:53:57 +00:00

Typo: bu => be

Typo: bu => be
mvspike (Migrated from github.com) commented 2020-04-13 09:10:12 +00:00

I would not put too much details in the usage section. I prefer keeping it as light as possible with a complete example. Then, I would create another "API documentation" section with a more detailed documentation of the initialization function and all the existing APIs

I would not put too much details in the usage section. I prefer keeping it as light as possible with a complete example. Then, I would create another "API documentation" section with a more detailed documentation of the initialization function and all the existing APIs
@ -1,35 +1,15 @@
import { reactotron, reactotronWithRedux } from './reactotron';
import { createFirebaseLogger, createSentryLogger } from './loggers';
import { IConfig, IReactotron } from './model/config';
import { setupReactotron, setupReactotronWithRedux } from './modules/reactotron';
mvspike (Migrated from github.com) commented 2020-04-13 09:30:56 +00:00

I would keep the index.ts light with just the import/export statements. The code could be moved to one or multiple files (it might be better to extract the logic of each feature (logger, crash, reactotron, ...) and put it in a separate file)

I would keep the index.ts light with just the import/export statements. The code could be moved to one or multiple files (it might be better to extract the logic of each feature (logger, crash, reactotron, ...) and put it in a separate file)
mvspike (Migrated from github.com) commented 2020-04-13 09:26:06 +00:00

Not sure it is a good practice to use console.log in the lib. Maybe we should re-throw the error or at least disable the logs when we are not in DEV mode (or give control of that logs to the project using the library).

Not sure it is a good practice to use console.log in the lib. Maybe we should re-throw the error or at least disable the logs when we are not in DEV mode (or give control of that logs to the project using the library).
Sign in to join this conversation.
No description provided.