Skip to content

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

@AmrithVengalath

Description

@AmrithVengalath

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions