maplibre-react-native
maplibre-react-native copied to clipboard
Text not working in PointAnnotaion
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.