79397828

Date: 2025-01-29 18:42:37
Score: 1
Natty:
Report link

add a prop key to MapView like this <MapView key={Platform.OS === "android" ? ${Key} : "map"} ... /> and define a state: const [key, setKey] = React.useState(0);

and add useEffect:

useEffect(() => {
    if (Platform.OS === "android") {
      setKey((prev) => prev + 1);
      setIsMapReady(false);
    }
  }, [storeMarkers]);
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: torodebout