Giter VIP home page Giter VIP logo

Comments (10)

alainib avatar alainib commented on August 20, 2024 1

i have an issue like this. if images contain for example 200 elements, if i put initalPage = 30 it don't work ( don't display the good image and cannot go left and right)
how to solve this please ?

from react-native-image-gallery.

rskull avatar rskull commented on August 20, 2024 1

same issue

from react-native-image-gallery.

chrusart avatar chrusart commented on August 20, 2024

Could you provide some reproduction steps?
When it happen, on initial page > 10?
It can be the same I had with FlatLists component.

from react-native-image-gallery.

InYourDreamz avatar InYourDreamz commented on August 20, 2024

Nothing special actually, I'm taking from the example and using this array source.

array.txt

and the code is

            <Gallery
                imageComponent={this.renderImage}
                images={this.state.images}
                initialPage={0}
                onPageSelected={this.onChangeImage}
                errorComponent={this.renderGalleryError}
              />

Maybe the behaviour is built in such a way that it will only load 10 and you have to load the next 10?

from react-native-image-gallery.

chrusart avatar chrusart commented on August 20, 2024

Nooo, if you have all images in state.images this should work.

from react-native-image-gallery.

chrusart avatar chrusart commented on August 20, 2024

btw. @Exilz I was busy and couldn't go back to you about 2.0 version, but I had still some issues and I am still using my branch. Will try look at current version soon.

from react-native-image-gallery.

InYourDreamz avatar InYourDreamz commented on August 20, 2024

@chrusart oh, it is in a state.
I attached the txt file here in case you'd like to have a look at it.

from react-native-image-gallery.

chrusart avatar chrusart commented on August 20, 2024

Yeah, I saw it, I don't think you made errors in a file.

from react-native-image-gallery.

Exilz avatar Exilz commented on August 20, 2024

Is it still a problem with the latest version of the plugin ?

from react-native-image-gallery.

a-c-sreedhar-reddy avatar a-c-sreedhar-reddy commented on August 20, 2024

You may have to pass initialNumToRender to the flatlist prop whose default value is 10.

from react-native-image-gallery.

Related Issues (20)

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.