alanjhughes / expo-google-places-autocomplete

MIT License
21 stars 8 forks source link

Cannot find native module ExpoGooglePlacesAutocomplete #4

Closed webabbey247 closed 1 year ago

webabbey247 commented 1 year ago

I had this issue popping constantly and i decide to check the package folder, i noticed an error which i corrected and it's working now.

After Installation, i noticed this export in ExpoGooglePlacesAutocompleteModule.js

export default requireNativeModule("ExpoGooglePlacesAutocomplete",) as ExpoGooglePlacesAutocompleteModule;

I removed the comma and everything works fine. The final export is:

export default requireNativeModule("ExpoGooglePlacesAutocomplete") as ExpoGooglePlacesAutocompleteModule;

alanjhughes commented 1 year ago

Thanks! Fixed and published

FezVrasta commented 1 year ago

I still see this error installing it from npm, was it published there?

 ERROR  Error: Cannot find native module 'ExpoGooglePlacesAutocomplete', js engine: hermes