Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add or document way of disabling for debug builds #19

Closed
greenatwork opened this issue Aug 9, 2016 · 4 comments
Closed

Add or document way of disabling for debug builds #19

greenatwork opened this issue Aug 9, 2016 · 4 comments

Comments

@greenatwork
Copy link

It would be great if there was a way to only enable this module in production builds. Whether the best course of action is to include something in the module, or provide an example of how to go about it in the documentation, I don't know.

@Dean177
Copy link

Dean177 commented Aug 10, 2016

From the Readme:

const Analytics = require('react-native-firebase-analytics');

if (environment === 'staging') {
    Analytics.setEnabled(false);
}

@greena13
Copy link

greena13 commented Aug 10, 2016

Fiddlesticks. I thought I had seen it somewhere, but couldn't find it when I actually needed it.

I would argue that it could have its own heading to make it easier to find. Otherwise I am happy for this to be closed as an invalid issue.

Thanks for your pointing it out @Dean117.

@Dean177
Copy link

Dean177 commented Aug 10, 2016

Happy to help

On 10 Aug 2016 5:31 p.m., "Aleck Greenham" notifications@github.com wrote:

Fiddlesticks. I thought I had seen it somewhere, but couldn't find it when
I actually needed it.

I would argue that it could have its own heading to make it easier to
find. Otherwise I am happy for this to be closed as an invalid issue.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#19 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEYKrugZO23QDrEjd7pmVPUexyYffuW2ks5qefz0gaJpZM4Jf6Os
.

@sibelius
Copy link

sibelius commented Dec 8, 2016

@greenatwork can u close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants