File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -256,8 +256,11 @@ function getUri(src: string | ImageAsset) {
256256 if ( found ) {
257257 return uri ;
258258 }
259- } else if ( uri . indexOf ( '~/' ) === 0 ) {
260- return NSURL . alloc ( ) . initFileURLWithPath ( `${ path . join ( knownFolders . currentApp ( ) . path , uri . replace ( '~/' , '' ) ) } ` ) ;
259+ else if ( uri . indexOf ( '~/' ) === 0 ) {
260+ return NSURL . fileURLWithPath ( `${ path . join ( knownFolders . currentApp ( ) . path , uri . replace ( '~/' , '' ) ) } ` ) ;
261+ }
262+ else if ( uri . indexOf ( '/' ) === 0 ) {
263+ return NSURL . fileURLWithPath ( uri ) ;
261264 }
262265 return NSURL . URLWithString ( uri ) ;
263266}
@@ -530,7 +533,7 @@ export class Img extends ImageBase {
530533
531534 // console.log('about to load', this.src, options);
532535 this . nativeViewProtected . sd_setImageWithURLPlaceholderImageOptionsContextProgressCompleted (
533- getUri ( src ) ,
536+ uri ,
534537 this . placeholderImage ,
535538 options ,
536539 context ,
You can’t perform that action at this time.
0 commit comments