evollu / react-native-firebase-analytics

React native bridge for firebase analytics
MIT License
206 stars 54 forks source link

Added ability to enable/disable analytics temporarily #3

Closed xxsnakerxx closed 8 years ago

xxsnakerxx commented 8 years ago

related with https://github.com/evollu/react-native-firebase-analytics/issues/2

evollu commented 8 years ago

nice pull, thanks!

xxsnakerxx commented 8 years ago

@evollu And need to replace getCurrentActivity() with getReactApplicationContext() for all methods in android module, because you can call analytics methods before the app will be initialized (getCurrentActivity returns null in this case and the app is crashing)

I can create PR after this will be merged!