We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On iOS, I have an ImageSource that I want to pass to some Image components:
ImageSource
Image
<Image *ngIf="cond" [src]="myImageSource"></Image> <Image *ngIf="otherCond" [src]="myImageSource"></Image>
But when Image is disposed, it clears the content of the provided ImageSource (this.imageSource.ios = null; ), which makes it not reusable!
this.imageSource.ios = null;
NativeScript/packages/core/ui/image/index.ios.ts
Lines 29 to 41 in 0506012
Note that when src is an ImageSource, the _createImageSourceFromSrc function does not create but just use the provided ImageSource
src
_createImageSourceFromSrc
NativeScript/packages/core/ui/image/image-common.ts
Lines 124 to 127 in 0506012
No response
The text was updated successfully, but these errors were encountered:
Interesting. Does android behave as expected?
Sorry, something went wrong.
Yep
No branches or pull requests
Issue Description
On iOS, I have an
ImageSource
that I want to pass to someImage
components:But when
Image
is disposed, it clears the content of the providedImageSource
(this.imageSource.ios = null;
), which makes it not reusable!NativeScript/packages/core/ui/image/index.ios.ts
Lines 29 to 41 in 0506012
Note that when
src
is anImageSource
, the_createImageSourceFromSrc
function does not create but just use the providedImageSource
NativeScript/packages/core/ui/image/image-common.ts
Lines 124 to 127 in 0506012
Reproduction
No response
Relevant log output (if applicable)
No response
Environment
No response
Please accept these terms
The text was updated successfully, but these errors were encountered: