react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.23k stars 881 forks source link

Invariant Violation in builds #1349

Closed MayankChandratre1 closed 1 week ago

MayankChandratre1 commented 1 week ago

I am using the Expo development build to run my app on android and integrating google signin using this library

Error:

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNGoogleSignin' could not be found. Verify that a module by this name is registered in the native binary.Bridgeless mode: false. TurboModule interop: false. Modules loaded: {"NativeModules":["PlatformConstants","LogBox","SourceCode","Timing","AppState","BlobModule","WebSocketModule","DevSettings","DevToolsSettingsManager","Networking","Appearance","DevLoadingView","HeadlessJsTaskSupport","DeviceInfo","UIManager","ImageLoader","SoundManager","IntentAndroid","DeviceEventManager","RNCSafeAreaContext","NativeAnimatedModule","I18nManager","RNCDatePicker","RNCTimePicker"],"TurboModules":[],"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","RedBox","BugReporting","LinkingManager","NativeReactNativeFeatureFlagsCxx","RNSModule","RNGoogleSignin"]}, js engine: hermes [Component Stack]

app.json

{
  "expo": {
    "name": "LinkUp",
    "slug": "LinkUp",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/images/icon.png",
    "scheme": "myapp",
    "userInterfaceStyle": "automatic",
    "splash": {
      "image": "./assets/images/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "googleServicesFile": "./google-services.json",
      "adaptiveIcon": {
        "foregroundImage": "./assets/images/adaptive-icon.png",
        "backgroundColor": "#ffffff"
      },
      "package": "com.mayank.aora",
      "permissions": [
        "android.permission.CAMERA",
        "android.permission.RECORD_AUDIO"
      ],
      "softwareKeyboardLayoutMode": "pan"
    },
    "web": {
      "bundler": "metro",
      "output": "static",
      "favicon": "./assets/images/favicon.png"
    },
    "plugins": [
      "@react-native-google-signin/google-signin",
      "expo-router",
      [
        "expo-camera",
        {
          "cameraPermission": "Allow $(PRODUCT_NAME) to access your camera",
          "microphonePermission": "Allow $(PRODUCT_NAME) to access your microphone",
          "recordAudioAndroid": true
        }
      ],
      "@react-native-firebase/app",
      "@react-native-firebase/auth",
      [
        "expo-location",
        {
          "locationAlwaysAndWhenInUsePermission": "Allow $(PRODUCT_NAME) to use your location."
        }
      ]
    ],
    "experiments": {
      "typedRoutes": true
    },
    "extra": {
      "router": {
        "origin": false
      },
      "eas": {
        "projectId": "**Hidden***"
      }
    }
  }
}

and I am using the GoogleSignin in my app as, import { GoogleSignin } from "@react-native-google-signin/google-signin";

 useEffect(()=>{
    GoogleSignin.configure({
        webClientId: "157758303431-6nssjbt2aopl7219sugns2b400s2dh4a.apps.googleusercontent.com", 
    })  
},[])

Versions - React-native-google-signin: "@react-native-google-signin/google-signin": "^13.1.0", Expo: "expo": "^51.0.38", React-Native: "react-native": "0.74.5",

github-actions[bot] commented 1 week ago

:wave: @MayankChandratre1, sorry you're having an issue. As the issue template explains, it's required that you provide a runnable example that reproduces your issue (please read the issue template). The reason is that the maintainer does not have time to try reproduce bugs himself. Please try to minimize the superfluous code and focus only on reproducing the bug. Please create a new issue with this and the maintainer will do his best to review it!.