Skip to content

screen_view is reserved, but not in list of reserved names #55

@scarlac

Description

@scarlac

This package includes a list of reserved event names which doesn't include "screen_view". So tracking events manually using logEvent("screen_view") will actually fail. I encountered this since setCurrentScreen(...) doesn't actually track anything and the automatic tracking doesn't work (likely because RN projects usually don't use native navigation components.

Fix is simply to add 1 line in lib/modules/analytics/index.js in the const ReservedEventNames array: 'screen_view'

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions