-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Description
Is this a bug report?
I dont know if this is a Bug.
The docs says that RCTImageFromLocalAssetURL
loads only local images.
// Returns an UIImage for a local image asset. Returns nil if the URL
// does not correspond to a local asset.
But in recent version of RN, it is also loading image from web (https).
My question is, this is intentional? Because this breaks my previous logic.
Have you read the Contributing Guidelines?
Yes.
Environment
Environment:
OS: macOS Sierra 10.12.6
Node: 6.11.3
Yarn: 1.3.2
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: EAP AI-171.4429293 AI-171.4429293
Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: 0.50.3 => 0.50.3
Steps to Reproduce
Call RCTImageFromLocalAssetURL
with a web image URI.
Expected Behavior
Return nil
if a non local image is provided.
Actual Behavior
This is loading image from the web.