Baseflow / LottieXamarin

Render After Effects animations natively on Android, iOS, MacOS and TvOS for Xamarin
https://baseflow.com
Apache License 2.0
1.22k stars 261 forks source link

Com.Airbnb.Xamarin.Forms.Lottie 4.09 #324

Closed burakglc closed 2 years ago

burakglc commented 3 years ago

<forms:AnimationView x:Name="animationView" Animation="42201-star.json"
AutoPlay="True" WidthRequest="300" HeightRequest="300" RepeatMode="Restart" VerticalOptions="Center" HorizontalOptions="Center" />

not showing Json file in phone

DavidArtifacts commented 3 years ago

Hi, if you mean that it doesn't play the animation. I solved it using this values AnimationSource="EmbeddedResource" Animation="resource://animation.json?assembly=MyApp" And moving the file to XF shared project with Build Action as Embedded resource

It works on Android, idk if it will in iOS

In my case was the only way to get it play.