leecade / leecade/react-native-swiper

4-way swipe organization

Open
#192 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

I'm trying to get a full 4-way swipe going, which is working by nesting the component like so.
A user can navigate right from either Home, Top or Bottom but once right, they need to come back to Home to go up or down. Is there a good way to say, swipe up to Top when the user is Further Right?

      <Swiper
        loop={false}
        showsPagination={false}
        index={1}>
        <View style={this.viewStyle()}>
          <TitleText label="Left" />
        </View>
        <Swiper
          horizontal={false}
          loop={false}
          showsPagination={false}
          index={1}>
          <View style={this.viewStyle()}>
            <TitleText label="Top" />
          </View>
          <View style={this.viewStyle()}>
            <TitleText label="Home" />
          </View>
          <View style={this.viewStyle()}>
            <TitleText label="Bottom" />
          </View>
        </Swiper>
        <View style={this.viewStyle()}>
          <TitleText label="Right" />
        </View>
        <View style={this.viewStyle()}>
          <TitleText label="Further Right" />
        </View>
      </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 reviewing the nested Swiper example in the issue and the component's gesture and navigation behavior. Determine whether four-way navigation can work from positions such as “Further Right” while still allowing vertical swipes. Done means the requested four-way swipe organization is supported and its behavior is documented or demonstrated.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.