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

How to use it within react-native segment sdk #15

Open
fr33z3 opened this issue Mar 23, 2020 · 1 comment
Open

How to use it within react-native segment sdk #15

fr33z3 opened this issue Mar 23, 2020 · 1 comment

Comments

@fr33z3
Copy link

fr33z3 commented Mar 23, 2020

Hello.
Is there any guide or solution to use it within react-native SDK? How to set proxy url when I set up analytics in the application.

Thank you in advance.

@emeraldsanto
Copy link

emeraldsanto commented Mar 4, 2021

I had the same question and found that it was described in the TypeScript definition files of the library:

Segment.setup("YOUR_WRITE_KEY", {
  proxy: {
    scheme: "http",
    host: "localhost",
    port: 8181,
    path: '/segment',
  },
});

I've noticed during my tests that /v1/batch will be appended to your proxy.path though.

You can find more information in this file.

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

2 participants