useEffect(() => {
if(!origin || !destination) return;
mapRef.current.fitToSuppliedMarkers(["origin", "destination"], {
edgePadding: { top: 50, right: 50, bottom: 50, left: 50}
})
}, [origin, destination]);
So I'm following a tutorial and I can't seem to find what goes before you give the origin and destination to the fitToSuppliedMarkers, it is asking for this: viewRef: MapViewNativeComponentType, but I don't know what that is, can someone tell me what goes in there?
I'm using VS Code, with the genymotion emulator with the google play services installed and coding for Android OS 10 using Windows 11.
I tried searching for the error and for documentation on the react native components for the mapview but none of them are working for me.