Skip to content

Missing requiresMainQueueSetup implementation #402

@te-online

Description

@te-online
  • analytics-react-native version: 2.0.0-pilot
  • Integrations versions (if used): n/a
  • React Native version: 0.64.3
  • iOS or Android or both? iOS

Steps to reproduce
Start app with analytics-react-native installed

Expected behavior
No warnings are logged

Actual behavior
A warning is logged

Module AnalyticsReactNative requires main queue setup since it overrides `init` but doesn't implement `requiresMainQueueSetup`. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.

A possible fix might be similar to the one mentioned in this thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions