Skip to content

Commit df745b3

Browse files
committed
comment for #37 fix
1 parent 6f87f09 commit df745b3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/nativescript-lottie.android.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ export class LottieView extends LottieViewBase {
8282

8383
private setSrc(src: string) {
8484
if (this.nativeView) {
85-
85+
// allows passing the lottie json asset without the file extension
86+
// github issue: https://github.com/bradmartin/nativescript-lottie/issues/37
8687
src = /.json$/.test(src) ? src : `${src}.json`;
87-
88+
8889
if (this.cacheStrategy) {
8990
this.nativeView.setAnimation(src, this.cacheStrategy);
9091
} else {

0 commit comments

Comments
 (0)