danscan / rn-redux-mixpanel

Configurable redux middleware that sends your actions & user profile data to Mixpanel. Works with React Native!
67 stars 14 forks source link

Checks to see if process variable is available for setting DEBUG constant #1

Closed por closed 9 years ago

por commented 9 years ago

Defaults to false. This makes the middleware compatible with react native < 0.10.0

por commented 9 years ago

There might be a more elegant way to do this. Previous React Native versions also have a global __DEV__ variable that can be used, but I’m not certain it’s always available.

danscan commented 9 years ago

Good catch @por. I'll take a look to see if it may be better to use __DEV__. Thanks!