Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[New Arch] Custom image Markers not rendering

Abierto
#5,909 3 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
android, react-native, typescript
Área
mobile

Línea de trabajo

Start with the supplied React Native 0.77.3/Fabric Android reproduction using the custom Marker/Image snippet and verify that taps work while the bitmap is blank. Trace the Android marker rendering or snapshot entry point; done means the local asset image is visible on the map and the marker remains tappable.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
Summary

Custom <Marker> components with a child <Image> (including local asset images via require()) render invisibly on Android when using the New Architecture (Fabric). The marker's touch target exists — taps register — but the visual is blank.
Environment
react-native-maps: 1.25.0
react-native: 0.77.3
architecture: New Architecture (Fabric) — enabled by default in RN 0.77+
platform: Android (all devices tested)
maps provider: Google Maps






Expected behaviour
The custom marker image renders visibly on the map on Android.

plz resolve or provide support for this


### Reproducible sample code

```TSX
1. Create a React Native 0.77+ project with New Architecture enabled (default)
2. Install react-native-maps@1.27.2
3. Render a `<Marker>` with a child `<Image>` using a local asset:


import { Marker } from 'react-native-maps';
import { Image } from 'react-native';

<Marker coordinate={{ latitude: 28.61, longitude: 77.20 }}>
  <Image
    source={require('./assets/truck.png')}
    style={{ width: 48, height: 24 }}
    resizeMode="contain"
  />
</Marker>
Steps to reproduce
  1. Run on Android — marker is invisible
  2. Tap the invisible marker — onPress fires, confirming the native view exists
Expected result

The custom marker image renders visibly on the map on Android.

Actual result

The marker renders as completely transparent/blank on Android. No image is visible. The native hit area is present (taps work), confirming the view is mounted but the bitmap snapshot captured an empty frame.

React Native Maps Version

1.25.0

What platforms are you seeing the problem on?

Android

React Native Version

0.77.3

What version of Expo are you using?

Not using Expo

Device(s)

Android 15

Additional information

No response

Lenguaje dominante
TypeScript
Estrellas
16k
Forks
5k
Merge medio
17 h 45 min
PR fusionados (30 d)
2

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de react-native-maps/react-native-maps

Todos los issues de react-native-maps/react-native-maps

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.