Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fungilation opened this issue Jan 9, 2018 · 19 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Fixed A PR that fixes this issue has been merged. Resolution: Locked This issue was locked by the bot. Resolution: PR Submitted A pull request with a fix has been provided.

Comments

@fungilation
Copy link

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.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon. labels Feb 24, 2018
@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Feb 24, 2018
@hramos hramos reopened this Feb 24, 2018
@facebook facebook deleted a comment from react-native-bot Feb 24, 2018
@shettayyy
Copy link

shettayyy commented 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

@hramos
Copy link
Contributor

hramos commented Mar 5, 2018

PR #17679 is an attempt to fix this.

@hramos hramos added the Resolution: PR Submitted A pull request with a fix has been provided. label Mar 5, 2018
@animaonline
Copy link

Started getting this in 0.54.0, is there a way to actually disable the warning?

This doesn't seem to work:

YellowBox.ignoreWarnings([
'Warning: Module RCTImageLoader requires',
]);

@fungilation
Copy link
Author

because the warning has no "warning: " prefix. Take that out in your ignore

@alzalabany
Copy link

can we merge this soon ?

@hramos hramos added the Resolution: Fixed A PR that fixes this issue has been merged. label Apr 9, 2018
@hramos
Copy link
Contributor

hramos commented Apr 9, 2018

Merged

@hramos hramos closed this as completed Apr 9, 2018
@coderdave

This comment has been minimized.

@fungilation
Copy link
Author

It'll be included in RN 0.56 I take it?

@vikrantnegi

This comment has been minimized.

@aqkhan

This comment has been minimized.

@iRoachie
Copy link
Contributor

It should be in the next minor (0.56.0), the patch updates(x.x.patch) only fix errors found in the latest minor afaik.

@watadarkstar

This comment has been minimized.

@iRoachie
Copy link
Contributor

It’s merged into master but it’s not released in a version as yet

@watadarkstar
Copy link

Thanks for the quick reply @iRoachie !

@IamMasterWayne

This comment has been minimized.

@woowalker

This comment has been minimized.

@ghost

This comment has been minimized.

@iRoachie
Copy link
Contributor

There has been no major release as yet guys. Please stop saying it’s still showing. @hramos can you lock this thread ?

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@hramos
Copy link
Contributor

hramos commented May 24, 2018

Fix is in master. You may build React Native from source to take advantage of the fix.

@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Apr 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Fixed A PR that fixes this issue has been merged. Resolution: Locked This issue was locked by the bot. Resolution: PR Submitted A pull request with a fix has been provided.
Projects
None yet
Development

No branches or pull requests