react-native-maps
react-native-maps copied to clipboard
Exception in HostFunction: Malformed calls from JS: field sizes are different.
Summary
Error: Exception in HostFunction: Malformed calls from JS: field sizes are different.
Reproducible sample code
import React from 'react';
import MapView from 'react-native-maps';
const App = ()=>{
return (<MapView
ref={mapRef}
showsUserLocation={true}
rotateEnabled={Platform.OS === 'android'}
region={{
latitude: mapCenter.latitude,
longitude: mapCenter.longitude,
latitudeDelta: mapCenter.latitudeDelta,
longitudeDelta: mapCenter.longitudeDelta,
}}
style={[AppStyle.fill, Gutters.mt5]}
followsUserLocation={true}
onPanDrag={onMapPanDrag}
scrollEnabled={mapScrollEnabled}
showsMyLocationButton={false}
showsPointsOfInterest={false}
showsScale={false}
showsTraffic={false}
userInterfaceStyle={'light'}
toolbarEnabled={false}
mapType={mapType}
// provider={'google'}
customMapStyle={[AppStyle.fill]}
provider={PROVIDER_GOOGLE}
//
>);
}
export default App;
Steps to reproduce
Run sample code and change provider to google it crashed. without changing provider it works fine.
Expected result
It should run after changing provider.
Actual result
Getting malformed exception error.
React Native Maps Version
1.15.6
What platforms are you seeing the problem on?
iOS (Google Maps)
React Native Version
0.71.3
What version of Expo are you using?
Not using Expo
Device(s)
iPhone 15 pro max iOS 17.0 (Simulator)
Additional information
No response