Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confetti not rendering on top of Images #92

Open
Luducrous opened this issue Jun 8, 2023 · 3 comments
Open

Confetti not rendering on top of Images #92

Luducrous opened this issue Jun 8, 2023 · 3 comments

Comments

@Luducrous
Copy link

I am sorry for not having the time to make a minimum reproducible example.

However, I am facing the issue that the Confetti does not render on top of images.
I have attempted to layer the components using zIndex property, but that however does not work.

@PavelPolyakov
Copy link

Can this be somehow solved? In my case it is not rendered over the https://wix.github.io/react-native-ui-lib/docs/components/lists/GridList . Are there any alternatives to this lib?

@PavelPolyakov
Copy link

PavelPolyakov commented Jan 22, 2024

This has helped me:

<View
        style={{
          position: "absolute",
          top: 0,
          left: 0,
          right: 0,
          bottom: 0,
          zIndex: Number.MAX_VALUE,
          pointerEvents: "none",
        }}
      >
        <ConfettiCannon
          count={200}
          origin={{ x: -10, y: 0 }}
          fadeOut={true}
          autoStart={false}
          ref={(ref) => setCannon(ref)}
        />
</View>

(it was suggested by ChatGPT 🤖)

@miteshdevg
Copy link

This has helped me:

<View
        style={{
          position: "absolute",
          top: 0,
          left: 0,
          right: 0,
          bottom: 0,
          zIndex: Number.MAX_VALUE,
          pointerEvents: "none",
        }}
      >
        <ConfettiCannon
          count={200}
          origin={{ x: -10, y: 0 }}
          fadeOut={true}
          autoStart={false}
          ref={(ref) => setCannon(ref)}
        />
</View>

(it was suggested by ChatGPT 🤖)

it's working bro thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants