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.
2 parents 215c3e1 + d3b0040 commit 6f87f09Copy full SHA for 6f87f09
src/nativescript-lottie.android.ts
@@ -82,6 +82,9 @@ export class LottieView extends LottieViewBase {
82
83
private setSrc(src: string) {
84
if (this.nativeView) {
85
+
86
+ src = /.json$/.test(src) ? src : `${src}.json`;
87
88
if (this.cacheStrategy) {
89
this.nativeView.setAnimation(src, this.cacheStrategy);
90
} else {
0 commit comments