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

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

Open
AmrithVengalath opened this issue Aug 29, 2024 · 0 comments

Comments

@AmrithVengalath
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant