1.0.2 • Published 4 years ago
react-native-slide-image v1.0.2
Image Slider Component for React Native App's.
React Native Image slider
How to Use it
$npm i react-native-slide-image
import { SlideShow } from 'react-native-slide-image';
export default class App extends React.Component {
render() {
const imagesSource=[
'https://s.gravatar.com/avatar/4e93b2b56885dd5a1b51282be3bfcbd7',
'https://s.gravatar.com/avatar/4e93b2b56885dd5a1b51282be3bfcbd7',
'https://s.gravatar.com/avatar/4e93b2b56885dd5a1b51282be3bfcbd7',
'https://s.gravatar.com/avatar/4e93b2b56885dd5a1b51282be3bfcbd7',
'https://s.gravatar.com/avatar/4e93b2b56885dd5a1b51282be3bfcbd7'
];
return (
<View style={styles.container}>
<SlideShow images={imagesSource} height={300} />
</View>
);
}
}
Props
- images - Array of image source
- height(optional) - height to define image of slide