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

Invariant Violation in builds #1349

Closed
MayankChandratre1 opened this issue Nov 3, 2024 · 1 comment
Closed

Invariant Violation in builds #1349

MayankChandratre1 opened this issue Nov 3, 2024 · 1 comment

Comments

@MayankChandratre1
Copy link

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",

Copy link

github-actions bot commented Nov 4, 2024

👋 @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!.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 4, 2024
@github-actions github-actions bot locked as off-topic and limited conversation to collaborators Nov 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants