Gif image does not resize on Android


#1

I’m using the nativescript-gif plugin on Nativescript with Angular, but the gif does not resize/take full height on Android. It works pretty well on IOS but not on Android. I tried stretch property, height property but no luck. I also tried the video plugin nativescript-videoplayer but now it does not resize on IOS and works fine on Android using the fill property. What I’m trying to do is to show the user when they open the application a welcome screen with a gif or mp4.

<ActionBar icon="" class="action-bar">
</ActionBar>
<GridLayout rows="*">
  <Gif 
    row="0"
    reset="true"
    fill="true"
    src="https://66.media.tumblr.com/10d3c53690549afbb1b0b646c71898e5/tumblr_n7p2t8gwjN1slclp6o1_500.gif">
  </Gif>
  <ScrollView>
    <StackLayout style="margin-top: 72%;">
      <Button 
        text="CREATE ACCOUNT" 
        class="btn btn-primary btn-rounded-lg create-account-btn" [nsRouterLink]="['/signup']">
      </Button>
      <Label 
        text="Already a user?" 
        textWrap="true" class="lbl-user">
      </Label>
      <Button 
        text="LOG IN" 
        class="btn btn-primary btn-rounded-lg log-in" [nsRouterLink]="['/login']">
      </Button>
    </StackLayout>
  </ScrollView>
</GridLayout>