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

[Bug]: Exception in host function on StyleImport call #3710

Open
vineyardbovines opened this issue Dec 1, 2024 · 0 comments
Open

[Bug]: Exception in host function on StyleImport call #3710

vineyardbovines opened this issue Dec 1, 2024 · 0 comments
Labels
bug 🪲 Something isn't working

Comments

@vineyardbovines
Copy link

Mapbox Implementation

Mapbox

Mapbox Version

11.8.0

React Native Version

0.76.1

Platform

iOS

@rnmapbox/maps version

10.1.33

Standalone component to reproduce

import React from 'react';
import {
  MapView,
  StyleImport
} from '@rnmapbox/maps';

class BugReportExample extends React.Component {
  render() {
    return (
      <MapView styleURL="mapbox://styles/mapbox/standard">
        <StyleImport
          id="basemap"
          existing
          config={{ light: "dusk" }}
        />
      </MapView>
    );
  }
}

Observed behavior and steps to reproduce

CleanShot 2024-12-01 at 16 36 37@2x

Expected behavior

Map should render with 'dusk' lighting preset

Notes / preliminary analysis

Repro: https://github.com/vineyardbovines/rnmapbox-styleimport-bug

  1. Add secret key to app.json
  2. Add public key to App.tsx
  3. npx expo prebuild -p ios
  4. Ensure podfile has secret key
  5. Run the workspace in xcode

Additional links and references

CleanShot 2024-12-01 at 16 36 31@2x
CleanShot 2024-12-01 at 16 39 55@2x

@vineyardbovines vineyardbovines added the bug 🪲 Something isn't working label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant