My local images don't display when using react-native-image-slider
import React, { Component } from "react";
import {
View,
Text,
StyleSheet,
Button,
Image,
TouchableHighlight
} from "react-native";
import ImageSlider from 'react-native-image-slider';
class HomeScreen extends Component {
render() {
return (
<View style={styles.container}>
<View style={{alignItems: 'center'}}>
<ImageSlider
loopBothSides
autoPlayWithInterval={3000}
images={[
'../assets/img/art_1.png',
'../assets/img/art_2.png',
'../assets/img/art_3.png',
]}
style={{width:200, height: 200}}
/>
</View>
</View>
);
}
}
export default HomeScreen;
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'column',
justifyContent: 'center'
}
});
The only things that appears on the screen are the circle icons that tell you what image it's currently displaying. The images themselves are not displayed.