leecade / leecade/react-native-swiper

自动刷卡器异常!

Open
#1,093 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Which OS ?

OS系统

Version

-react-native-swiper v1.6.0-rc.3
-react-native v0.61.2

Expected behaviour

<View style={styles.swipeWrap}> <Swiper style={styles.wrap} autoplay={true} showsPagination={false} horizontal={false}> { this.state.newsList.length > 0 && this.state.newsList.map((item, index) => { return ( <View style={styles.newsItem} key={index}> <Text style={styles.tit}>{item.title}</Text> <Text style={styles.subTit}>{item.title}</Text> </View> ) }) } </Swiper> </View>

Actual behaviour
How to reproduce it>

To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.

Steps to reproduce

1.在componentWillMount获取借口数据!
2.自动播放未生效,手动操作一次后,自动播放开始生效!
3.滚动页面时,Swiper内容出现空白,同时播放频率也异常!

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 autoplay and blank-content behavior from the issue using the reported react-native-swiper v1.6.0-rc.3 and React Native 0.61.2 versions. The issue points to data loading in componentWillMount and asks for a reproduction in an examples folder example; done means autoplay works without manual interaction and scrolling does not blank the Swiper or change its playback frequency.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.