Code Monkey home page Code Monkey logo

Comments (5)

minhchienwikipedia avatar minhchienwikipedia commented on July 2, 2024

@raindev32 Let's try the latest version and see how it works in README
https://github.com/react-native-vietnam/react-native-swipe-up-down/releases/tag/v1.1.4

from react-native-swipe-up-down.

bm181354 avatar bm181354 commented on July 2, 2024

@minhchienwikipedia Hey dude, going through the code.
Close function is bit buggy, I think. I was not able to remove the full screen.
I followed your instruction and went through the example:

  itemMini={(show) => (
            <View
              style={{
                alignItems: "center",
                flex: 1,
                backgroundColor: "green",
              }}
            >
              <Text onPress={show}>This is the mini view, swipe up!</Text>
            </View>
          )}

After button smashing the button could be trigger and full view will be closed. However, that is no ideal. You don't want to press 20 times to get 1 click. I don't have mini view and only have full View on my setup. My guess is that there seem to be conflict on onPress function.
Appreciate the hard work dude!!

from react-native-swipe-up-down.

bm181354 avatar bm181354 commented on July 2, 2024

Code*

    itemFull={(close) => {
            return (
              <View
                style={{
                  flex: 1,
                  justifyContent: "center",
                  backgroundColor: "red",
                }}
              >
                <Text onPress={close} style={styles.instructions}>
                  Swipe down to close
                </Text>
              </View>
            );
          }}

from react-native-swipe-up-down.

minhchienwikipedia avatar minhchienwikipedia commented on July 2, 2024

@bm181354 sorry, I can't get it, can you send me your full code or a video of the issue you're getting?

from react-native-swipe-up-down.

bm181354 avatar bm181354 commented on July 2, 2024

@minhchienwikipedia https://snack.expo.dev/@biken/modal-popover
iPhone 7 with IOS 14.7.1 seems to have a problem.
However, it works in iphone Xs (Bigger iphones).

from react-native-swipe-up-down.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.