Git Product home page Git Product logo

Comments (6)

ldn0x7dc avatar ldn0x7dc commented on August 16, 2024

@admc
Sorry to say that I cannot reproduce the error above with same react-native version.
But this could be a similar problem with the one mentioned in the pull request.
Pls try editting your Gallery.js in your node_modules folder (follow the pull request, just some lines changed) and see if it works.

from react-native-gallery.

admc avatar admc commented on August 16, 2024

It did render more of a matrix of images, however I still receive the same error unfortunately. I wish I knew better how to help debug this issue :(

from react-native-gallery.

ldn0x7dc avatar ldn0x7dc commented on August 16, 2024

@admc
I'm looking into it.
Problem is I can not reproduce this error, so it's troublesome.
If you are not testing using the Demo project, maybe you could post more code here. It may help~

from react-native-gallery.

nickrobinson352 avatar nickrobinson352 commented on August 16, 2024

I am having the same issue

from react-native-gallery.

mjebrini avatar mjebrini commented on August 16, 2024

The issue appears only on Android if the Gallery has more than 50 images, setting initialPage to > 11 will always lead to show the image #11 and scrolling will crash the all with the following error:

undefined is not an object (evaluating '_this2.getCurrentImageTransformer().onResponderGrant')
onStart
    Gallery.js:112
activeImageResponder
    Gallery.js:146
onResponderGrant
    Gallery.js:61
onResponderGrant
    createResponder.js:189
executeDirectDispatch
    EventPluginUtils.js:176
setResponderAndExtractTransfer
    ResponderEventPlugin.js:344
extractEvents
    ResponderEventPlugin.js:444
extractEvents
    EventPluginHub.js:196
handleTopLevel
    ReactEventEmitterMixin.js:28
<unknown>
    ReactNativeEventEmitter.js:125
perform
    Transaction.js:138
batchedUpdates
    ReactDefaultBatchingStrategy.js:63
batchedUpdates
    ReactUpdates.js:98
_receiveRootNodeIDEvent
    ReactNativeEventEmitter.js:124
receiveTouches
    ReactNativeEventEmitter.js:186
__callFunction
    MessageQueue.js:228
<unknown>
    MessageQueue.js:105
guard
    MessageQueue.js:44
callFunctionReturnFlushedQueue
    MessageQueue.js:104

from react-native-gallery.

mjebrini avatar mjebrini commented on August 16, 2024

Got to find a solution for this:

This is related to a bug in the ListView in ViewPager where ListView initialListSize={initialListSize} should be set to the number of images in your Gallery.

check here for full solution

from react-native-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.