I am trying to display a gif in my android react-native project but it does not seem to work
my entire class is
import React, { Component } from 'react';
import { StyleSheet, Text, Image, TextInput, TouchableHighlight, DrawerLayoutAndroid, ScrollView, View } from 'react-native';
class Animation extends React.Component { render() {
return(
<View>
<Image source={require('../assets/loading.gif')} />
</View>
)
}
}
const styles = StyleSheet.create({
});
module.exports = Animation;
When I change the gif to a png in the same file it works perfectly so there is nothing wrong with the path.
To be clear I do not get an error, just nothing shows