Skip to content

React native tracker probably shouldn't have been published yet #1409

Open
@pfulop

Description

Describe the bug
Seems like there's a 4.3.1 version of @snowplow/react-native-tracker published on npm. This is still pointing to the old documentation but what's worse it doesn't seem to be functional. While this version should be JS only, it seems to depended on some native package that causes error:

Error initializing tracker [Error: Native module not found]

Inspecting this it seems to be due to react-native-get-random-values. I think what's happening here is that the native dependencies of this package are not installed (at least not with expo, but I doubt it works with pure rn project), due to this being just a js library now. I assume this will be listed as a dependencies that consumers need to install on their own, but for now, it's hard to understand what's going on.

To Reproduce
Install @snowplow/react-native-tracker

Expected behavior
React native tracker should work.

Smartphone (please complete the following information):

  • Device: Android/iOS
  • OS: Any
  • Browser none
  • Version irrelevant

Metadata

Assignees

No one assigned

    Labels

    type:defectBugs or weaknesses. The issue has to contain steps to reproduce.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions