leecade / leecade/react-native-swiper

Display multidimensional array

Open
#1,018 0 comments 0 reactions 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

os mojave
react-native v 0.60 and swiper v 1.5.14
I have array with 100 pages with data. Swiper is slow when use second map.
This is my code:

         <Swiper showsPagination={false} index={initpage} loadMinimal loadMinimalSize={2}>
          {dataPageVar.map((item, key) => {
            return (
              <View key={key} style={styles.slide}>
                {item.pages.map((it) => {
                    return(<Text style={styles.text}>{it.text}</Text>)
                  })}
              </View>
            )})}
         </Swiper>

Is there some solution. Data are displayed slow.

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 with the provided Swiper component usage and nested dataPageVar.map/item.pages.map example; the issue names no repository file or test. Reproduce the slow rendering with the stated React Native and swiper versions, then establish a measurable improvement for the 100-page multidimensional array case.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.