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.
src
.json
1 parent 215c3e1 commit d3b0040Copy full SHA for d3b0040
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