leecade / leecade/react-native-swiper

ios can't onPress

Open
#1,202 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Which OS ?

ios latest

Version

Which versions are you using:

  • react-native-swiper v1.6.0?
  • react-native v0.6.2
Expected behaviour

ios can onPress

Actual behaviour

ios onPress invalid

 <View style={{ height: 120 }}>
        {banners.length > 0 && (
          <Swiper
            autoplay
            paginationStyle={{ bottom: 5 }}
            activeDotColor="#fff"
          >
            {banners.map((item: any) => (
              <TouchableWithoutFeedback
                key={item.imageUrl}
                onPress={() => navigation.navigate('theme-goods', item)}
              >
                <Image
                  resizeMode="stretch"
                  source={{ uri: item.imageUrl }}
                  style={{ width, height: '100%' }}
                  PlaceholderContent={<ActivityIndicator />}
                />
              </TouchableWithoutFeedback>
            ))}
          </Swiper>
        )}
      </View>
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

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 Swiper usage shown in the issue and the examples folder, using the provided iOS and React Native versions. Reproduce the TouchableWithoutFeedback onPress behavior with the banner mapping, then confirm that the expected navigation callback works on iOS.

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.