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

Unable to Trigger Function on Clicking Atmosphere Layer in React Native Mapbox #13333

Open
MuhammadOsman381 opened this issue Nov 23, 2024 · 0 comments

Comments

@MuhammadOsman381
Copy link

MuhammadOsman381 commented Nov 23, 2024

 const handleBottomSheetClose = () => {
    console.log('Atmosphere clicked!');
    closeBottom();
  };
<TouchableWithoutFeedback onPress={handleBottomSheetClose}>
  <Mapbox.Atmosphere
    style={{
      color: 'rgb(186, 210, 235)',
      highColor: 'rgb(36, 92, 223)',
      horizonBlend: 0.015,
      spaceColor: 'rgb(11, 11, 25)',
      starIntensity: 0.4,
    }}
  />
</TouchableWithoutFeedback>

I am attempting to trigger a function when clicking on the Atmosphere layer in a Mapbox view within my React Native app. I have wrapped the <Mapbox.Atmosphere /> component with a to listen for the press event, but the function isn't being triggered as expected.

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

1 participant