mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +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> {
|
export function fromUrl(url: string): Promise<ImageSourceDefinition> {
|
||||||
console.log("imageSource.fromUrl(url) is deprecated; use http.getImage(url) instead");
|
|
||||||
|
|
||||||
ensureHttp();
|
ensureHttp();
|
||||||
return http.getImage(url);
|
return http.getImage(url);
|
||||||
}
|
}
|
||||||
|
@ -236,8 +236,6 @@ export function fromNativeSource(source: any): ImageSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function fromUrl(url: string): Promise<ImageSource> {
|
export function fromUrl(url: string): Promise<ImageSource> {
|
||||||
console.log("imageSource.fromUrl(url) is deprecated; use http.getImage(url) instead");
|
|
||||||
|
|
||||||
ensureHttp();
|
ensureHttp();
|
||||||
return http.getImage(url);
|
return http.getImage(url);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user