question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RN 0.52] RCTImageLoader requires main queue setup since it overrides `init` but doesn't implement `requiresMainQueueSetup`

See original GitHub issue

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
  OS: macOS Sierra 10.12.6
  Node: 9.3.0
  Yarn: 1.3.2
  npm: 5.6.0
  Watchman: 4.9.0
  Xcode: Xcode 9.2 Build version 9C40b
  Android Studio: Not Found

Packages: (wanted => installed)
  react: 16.2.0 => 16.2.0
  react-native: 0.52.0 => 0.52.0

Steps to Reproduce

$ react-native run-ios

Expected Behavior

iOS simulator run without errors.

Actual Behavior

screenshot 2018-01-09 14 53 14 screenshot 2018-01-09 15 02 18

^

Module RCTImageLoader 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.

Reproducible Demo

Any app using the Image component, although in my app I wrap that in a higher level component I use: react-native-fit-image.

I’ve never seen RCTImageLoader complain about requiresMainQueueSetup before. Only started now after I upgraded RN from 0.51 to 0.52.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:34
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

9reactions
alzalabanycommented, Mar 31, 2018

can we merge this soon ?

8reactions
shettayyycommented, Feb 26, 2018

For me, it doesn’t show any warning in the simulator but appears as a warning in the browser console.

RN Version: 0.53.3 React Version: 16.2.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module iCloudStorage requires main queue setup since it ...
Module iCloudStorage requires main queue setup since it overrides constantsToExport but doesn't implement requiresMainQueueSetup . In a future ...
Read more >
react-native-codegen | Yarn - Package Manager
Code generation tools for React Native ... Note: We're using yarn to install deps. Feel free to change commands to use npm 3+...
Read more >
iOS Native Modules
For iOS, if you override constantsToExport() then you should also implement + requiresMainQueueSetup to let React Native know if your module ...
Read more >
react-native/CHANGELOG.md - UNPKG
The CDN for react-native. ... 85, - Bump RN CLI to v7.0.3, and Metro to 67 ... 2054, - Fixed warning: "RCTImagePickerManager requires...
Read more >
How to write Native Modules for React Native - Around25
In this case, we have to use native API code for the Bluetooth module for both platforms, Java/Kotlin for Android and Objective-C/Swift for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found