Coder Social home page Coder Social logo

react-native-slideshow's People

Contributors

haqiqiw avatar lemankk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-slideshow's Issues

Add on press example

Can you help me, where I can place this code onPress to move to other screen detail image?
Thanks

Black Screen

I have a doubt because the screen is black whenever I'm doing wrong

captura de pantalla 2018-08-07 a la s 08 58 29

import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
Image,
} from 'react-native';
import Slideshow from 'react-native-slideshow';

class Slide extends Component {

constructor(props) {
    super(props)
    this.state = {
        position: 0,
        interval: null,
        dataSource: [
            {
                title: 'Title 1',
                caption: 'Caption 1',
                url: 'http://www.poresto.net/admin/yucatan/mod_secciones/fotos_titulos/images/img_1533623737_b063467de7a7e2e4451e.jpg'
            },
            {
                title: 'Title 2',
                caption: 'Caption 2',
                url: 'http://www.poresto.net/admin/yucatan/mod_secciones/fotos_titulos/images/img_1533626595_422bdae06043b705ec8c.jpg'
            },

            {
                title: 'Title 3',
                caption: 'Caption 3',
                url: 'http://www.poresto.net/admin/yucatan/mod_secciones/fotos_titulos/images/img_1533624703_b709b9e7d3a51f5dcda5.jpg'
            }
        ]
    }
}

render() {
    return (
        <View style={styles.container}>
            <Slideshow
                dataSource={this.state.dataSource}
                position={this.state.position}
                onPositionChanged={position => this.setState({ position })} />
        </View>
    );
}

}

const styles = StyleSheet.create({
container: {
height: 220
},
slideDefault: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
image: {
width: '100%',
flex: 1
}
});

export default Slide;

Indicator didn't move and Image scroll issue

I set 10 images . For example it's on 5th image and i scroll to 8th image but when it's on 8th image indicator does not updated and also it's move to 6th image after it's interval time complete. it should be move on to 9th image and also it should restart time interval again when i'm at new image and start's from there .
please Solve

Dot Page indicator not working.

If i click, the arrow button on left and right slider will work correctly and also the bullet dot page indicators changing correctly, but if i swipe via hands to next slide, The paging dot indicators does not changes.

Bug visual with the arrows.

hello,
Thanks for shared project.
I have one bug visual with the arrows.
I have fixed the bug by changing the value justifyContent : center in the constant layoutArrow

Before
const layoutArrow = function (imageHeight, iconHeight) { return { position: 'absolute', backgroundColor: 'transparent', justifyContent: 'flex-start', alignItems: 'flex-start', top: (imageHeight-iconHeight)/2, bottom: (imageHeight-iconHeight)/2, }; }

After
const layoutArrow = function (imageHeight, iconHeight) { return { position: 'absolute', backgroundColor: 'transparent', justifyContent: center', alignItems: 'flex-start', top: (imageHeight-iconHeight)/2, bottom: (imageHeight-iconHeight)/2, }; }

Local image shows blank in slideshow

How to add local image to the url so it shows in the slideshow, i have tried below urls but none works for me

<Slideshow dataSource={[ { url:'./images/restImage.jpg' } ]}/>

or

<Slideshow dataSource={[ { url:'images/restImage.jpg' } ]}/>

Make sure that the same source ('./images/restImage.jpg') is working fine with image element, so there is no any path issue i think.

Typo error on line 271

You may see that when checking for the left arrow, the program checks for the right arrow....

It says:
271: this.props.arrowRight == undefined ?

I should be:
271: this.props.arrowLeft == undefined ?

Problem while moving the slide

Please fix it, when I slide from the last slide to the first the position still leads to the last one. After the last slide time has run out, the new slide will move to the first slide. please fix it so that the slide follows after sliding and slide a little lag.
mantep mas, lanjutkan!

Set image resizeMode

how to set image resizeMode? And also set container height to full screen but keep image width not overflow or cropped. thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.