(path: string)
| 137 | } |
| 138 | |
| 139 | static fromFileSync(path: string): ImageSource { |
| 140 | const uiImage = UIImage.imageWithContentsOfFile(getFileName(path)); |
| 141 | |
| 142 | return uiImage ? new ImageSource(uiImage) : null; |
| 143 | } |
| 144 | static fromFile(path: string): Promise<ImageSource> { |
| 145 | return new Promise<ImageSource>((resolve, reject) => { |
| 146 | try { |
no test coverage detected