Skip to content

Map displays as a black screen in V10 example (iOS) #1804

@naftalibeder

Description

@naftalibeder

Description
The map displays a black frame instead of the expected map contents. It looks like the screenshot below - the same on simulator and device.

I know the V10 library is very much a work in progress, but my understanding is that it should at least display a map at this point, so I'm wondering if anybody else has had success with the example.

Reproduction

  1. Do a standard installation of rnmapbox/maps with $RNMapboxMapsImpl = 'mapbox':
git clone git@github.com:rnmapbox/maps.git
cd maps && npm i
cd example && npm i
  1. Delete the existing MapLibre Swift package, and add https://github.com/mapbox/mapbox-maps-ios.git as a new one.
  2. Launch the app on device or simulator.
  3. Navigate to the V10 section and launch either of the options.

Expected behavior
The map should look like a ... map.

Actual behavior
The map looks like a flat black rectangle.

Screenshots

Versions (please complete the following information):

  • Platform: iOS
  • Platform OS: iOS 15.3.1
  • Device: iPhone 12s
  • Emulator/ Simulator: Simulator and device
  • Dev OS: macOS 12.2 (21D49)
  • @rnmapbox/maps Version: 10.0.0-beta.0
  • React Native Version: 0.66.0

Other
Note that I was getting a Multiple commands produce... build error, which I was able to resolve by deleting one of the binary links - specifically the one at Build Phases > Link Binary With Libraries > MapboxMaps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions