(data: any)
| 174 | } |
| 175 | |
| 176 | static fromDataSync(data: any): ImageSource { |
| 177 | const uiImage = UIImage.imageWithData(data); |
| 178 | |
| 179 | return uiImage ? new ImageSource(uiImage) : null; |
| 180 | } |
| 181 | static fromData(data: any): Promise<ImageSource> { |
| 182 | return new Promise<ImageSource>((resolve, reject) => { |
| 183 | try { |
no outgoing calls
no test coverage detected