Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
c-info opened this issue Jul 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@c-info
Copy link

c-info commented Jul 13, 2024

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 c-info added the bug Something isn't working label Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant