[New Arch] Custom image Markers not rendering
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
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
- Run on Android — marker is invisible
- Tap the invisible marker —
onPressfires, 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
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de react-native-maps/react-native-maps
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
react-native-maps/react-native-maps#5987 · 1 comentario ·
Todos los issues de react-native-maps/react-native-maps
Issues similares
-
blocklist removal
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
MetaMask/eth-phishing-detect#296544 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
pastelsky/bundlephobia#1122 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100