mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix: revert fromUrl deprecate warning (#7082)
This commit is contained in:
@ -246,8 +246,6 @@ export function fromNativeSource(source: any): ImageSource {
|
||||
}
|
||||
|
||||
export function fromUrl(url: string): Promise<ImageSourceDefinition> {
|
||||
console.log("imageSource.fromUrl(url) is deprecated; use http.getImage(url) instead");
|
||||
|
||||
ensureHttp();
|
||||
return http.getImage(url);
|
||||
}
|
||||
|
@ -236,8 +236,6 @@ export function fromNativeSource(source: any): ImageSource {
|
||||
}
|
||||
|
||||
export function fromUrl(url: string): Promise<ImageSource> {
|
||||
console.log("imageSource.fromUrl(url) is deprecated; use http.getImage(url) instead");
|
||||
|
||||
ensureHttp();
|
||||
return http.getImage(url);
|
||||
}
|
||||
|
Reference in New Issue
Block a user