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

[QUESTION] Why using analytics-react-native instead of analytics-node ? #148

Open
louisiscoding opened this issue Nov 28, 2017 · 2 comments

Comments

@louisiscoding
Copy link

louisiscoding commented Nov 28, 2017

I quote :

A React Native client for Segment. The hassle-free way to integrate analytics into any application.

This library is based on its node counterpart, analytics-node. Despite being designed to run on react-native, it will also work in browsers (via webpack or browserify) and even in nodejs. You only need to include fetch for browsers or node-fetch for nodejs or io.js.

analytics-react-native is a library used to implement Segment API to react-native project.
But what does it bring to my react-native project that analytics-node doesn't.
Can i possibly use analytics-node for my react-native project ?

@scotty0
Copy link

scotty0 commented Nov 29, 2017

Hey @LouisJS - Scott from Segment here! We do have a number of clients that just use a browserfied version of analytics-node, and that's totally fine. I think this library does make things a little bit easier, but note that it isn't officially supported by Segment (althought it's great!).

Cheers

@neiker
Copy link
Owner

neiker commented Nov 29, 2017

hello! This package solve some issues I found on analytics-node package, for example, it don't require crypto wich don't work on react-native and you need to use something like react-native-crypto, I think there's other issues with another dependency but I can't remember what. If you try it, please tell us if you found any other problem.
Also analytics-react-native implements a screen method wich is useful for mobile apps.

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

3 participants