(url: string)
| 63 | } |
| 64 | |
| 65 | static fromUrl(url: string): Promise<ImageSource> { |
| 66 | return httpRequest({ url, method: 'GET' }).then((response) => response.content.toNativeImage().then((value) => new ImageSource(value))); |
| 67 | } |
| 68 | |
| 69 | static fromResourceSync(name: string): ImageSource { |
| 70 | const res = getApplication().getResources(); |