maplibre-react-native icon indicating copy to clipboard operation
maplibre-react-native copied to clipboard

Text not working in PointAnnotaion

Open Maxhu787 opened this issue 7 months ago • 6 comments
trafficstars

Here is a simple reproduction:

import { MapView, PointAnnotation } from "@maplibre/maplibre-react-native";
import { Text, View } from "react-native";

export function BugReport() {
  return (
    <MapView style={{ flex: 1 }}>
      <PointAnnotation id="test" coordinate={[0, 0]}>
        <View style={{ width: 200, height: 200, backgroundColor: "red" }}>
          <Text>Hello</Text>
        </View>
      </PointAnnotation>
    </MapView>
  );
}

It seems to be an issue with the new arch, with the following weird behavior:

  • iOS shows only the red square
  • Android only shows the text It works fine on the old architecture.

Maxhu787 avatar Apr 06 '25 17:04 Maxhu787