react-native-google-places icon indicating copy to clipboard operation
react-native-google-places copied to clipboard

Showing error `Expected a type` in the files RNGooglePlacesViewController.h and RNGooglePlacesViewController.m

Open AmrithVengalath opened this issue 5 months ago • 0 comments

Hey I'm recently facing this issue Expected a type when I try to run my Project on iOS.

it's showing the error in the file /node_modules/react-native-google-places/ios/RNGooglePlacesViewController.h and /node_modules/react-native-google-places/ios/RNGooglePlacesViewController.m

I was able to fix the same error for the line placeFields: (GMSPlaceField)selectedFields by importing #import <GoogleMaps/GoogleMaps.h>

Screenshot 2024-08-29 at 9 54 35 AM

Screenshot 2024-08-29 at 9 54 50 AM

Did anyone solve this issue ? I tried importing #import "RNGooglePlacesViewController.h" which didn't resolve the issue

Thank you!

AmrithVengalath avatar Aug 29 '24 04:08 AmrithVengalath