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.
1 parent 6f87f09 commit df745b3Copy full SHA for df745b3
src/nativescript-lottie.android.ts
@@ -82,9 +82,10 @@ export class LottieView extends LottieViewBase {
82
83
private setSrc(src: string) {
84
if (this.nativeView) {
85
-
+ // allows passing the lottie json asset without the file extension
86
+ // github issue: https://github.com/bradmartin/nativescript-lottie/issues/37
87
src = /.json$/.test(src) ? src : `${src}.json`;
88
+
89
if (this.cacheStrategy) {
90
this.nativeView.setAnimation(src, this.cacheStrategy);
91
} else {
0 commit comments