Skip to content

Warnings about modules requiring main queue setup #140

Closed
@benjarwar

Description

@benjarwar

Describe the bug
After recently upgrading to React Native 0.55.4, I've started seeing similar YellowBox warnings for three modules:

Module Gyroscope requires main queue setup since it overrides init but doesn't implement requiresMainQueueSetup.

Module Accelerometer requires main queue setup since it overrides init but doesn't implement requiresMainQueueSetup.

Module Magnetometer requires main queue setup since it overrides init but doesn't implement requiresMainQueueSetup.

To Reproduce
Steps to reproduce the behavior:

  1. I'm only using the Accelerometer in my project
  2. import { Accelerometer } from "react-native-sensors";
  3. See error in Simulator on app start

Expected behavior
Not expecting warnings.

Desktop (please complete the following information):

  • React Native Version: 0.55.4
  • Device: iOS Simulator
  • Version: 3.0.0

Additional context
Here's the same issue fixed for a React Native component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions