admin管理员组

文章数量:1335861

I am new to react-native, and I'm attempting to follow this tutorial /invertase/react-native-google-mobile-ads. However, I cannot resolve this error. I have found 'fixes' for this and many similar errors, but none have been successful for me. I have been on this issue for days.

I am using the latest of everything.

import { check, request, PERMISSIONS, RESULTS } from 'react-native-permissions';

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNPermissions' could not be found. Verify that a module by this name is registered in the native binary. [Component Stack]

EDIT: I'm trying to run on an Android Emulator. I've tried running the command npm start, and I've tried running 'npx expo run:android'

I am new to react-native, and I'm attempting to follow this tutorial https://docs.page/invertase/react-native-google-mobile-ads. However, I cannot resolve this error. I have found 'fixes' for this and many similar errors, but none have been successful for me. I have been on this issue for days.

I am using the latest of everything.

import { check, request, PERMISSIONS, RESULTS } from 'react-native-permissions';

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNPermissions' could not be found. Verify that a module by this name is registered in the native binary. [Component Stack]

EDIT: I'm trying to run on an Android Emulator. I've tried running the command npm start, and I've tried running 'npx expo run:android'

Share Improve this question edited Nov 19, 2024 at 22:55 Danny Ellis Jr. asked Nov 19, 2024 at 21:24 Danny Ellis Jr.Danny Ellis Jr. 1,7082 gold badges25 silver badges46 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

You'll need to create a new development build after setting up react-native-google-mobile-ads. This module contains native code so it will not run on Expo Go.

  • https://docs.expo.dev/develop/development-builds/create-a-build/

本文标签: react nativeRNPermissions could not be foundStack Overflow