Skip to content

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

Open

Description

@fr33z3

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.

Activity

  1. emeraldsanto commented on Mar 4, 2021

    @emeraldsanto

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions