leecade / leecade/react-native-swiper

loadMinimal is not working on andorid

Open
#404 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Hi ,

I am using this package for showing Images swiper. Images are coming from remote server and it could be 50 + images at a time.

Here is the code:

      <Swiper loadMinimalSize={1}
              loadMinimal={true}
              showsButtons={true}
              loop={true}
              showsPagination={false}
              index={this.index}
              nextButton={this.renderNextPrevButton('right')}
              prevButton={this.renderNextPrevButton('left')}
      >
        {
          this.state.fullSwiperImages.map((image, index) => {
            return (
              <View key={index}>
                <CachedImage
                  source={{uri: image.photo}}
                  minimumZoomScale={0.5}
                  maximumZoomScale={3}
                  androidScaleType="center"
                  style={{width: Metrics.screenWidth, height: Metrics.screenHeight}}
                  resizeMode="contain"
                />
                <Text style={Styles.dateStyle}>{Moment(image.created_at.date).format('YYYY-MM-DD hh:mm A')}</Text>
              </View>
            )
          })
        }
      </Swiper>

Load minimal is not working in android, its starting downloading all images. while in ios, it is working fine.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on Android with the provided Swiper example, using a large remote image list and loadMinimalSize={1}. Trace the Swiper loadMinimal handling and compare its Android behavior with iOS. Done means Android loads only the minimal nearby images instead of starting downloads for the full list.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.