react-native-maps icon indicating copy to clipboard operation
react-native-maps copied to clipboard

Exception in HostFunction: Malformed calls from JS: field sizes are different.

Open c-info opened this issue 1 year ago • 1 comments

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

c-info avatar Jul 13 '24 09:07 c-info

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If the issue remains relevant, simply comment Still relevant and the issue will remain open. Thank you for your contributions.

github-actions[bot] avatar Oct 12 '24 01:10 github-actions[bot]