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

this lib does not work with expo #1

Closed
gvnc opened this issue Mar 29, 2020 · 2 comments
Closed

this lib does not work with expo #1

gvnc opened this issue Mar 29, 2020 · 2 comments

Comments

@gvnc
Copy link

gvnc commented Mar 29, 2020

I tried to run it on expo, but it gives below error on adroid phone with expo client.

_> [01:59:51] requireNativeComponent: "RNGADNativeView" was not found in the UIManager.

  • node_modules\react-native\Libraries\ReactNative\getNativeComponentAttributes.js:30:4 in getNativeComponentAttributes
  • node_modules\react-native\Libraries\Renderer\shims\ReactNativeViewConfigRegistry.js:102:25 in exports.get_

I see that this view is included in the src folder of this repo, but somehow it doesn't findt it,

@ammarahm-ed
Copy link
Owner

https://docs.expo.io/versions/latest/introduction/faq/

Managed Expo projects don't support custom native code, including third-party libraries which require custom native components. In a managed project, you only write JavaScript.
In our SDK, we give you a large set of commonly desired, high-quality native modules. We recommend doing as much in JavaScript as possible, since it can immediately deploy to all your users and work across both platforms, and will always continue to benefit from Expo SDK updates.
However, if you need something custom that isn't possible with the native modules provided in the SDK, like on-the-fly video processing or low-level control over the Bluetooth radio to do a firmware update and other features requested here, you can run expo eject and have full control over the underlying native projects.

I think expo does not support native modules directly according to the docs. If you want you can try the above, call expo eject and maybe this will work. I have not tested it with expo, but I will try it out tomorrow morning to see if there is a way to work this out. Till then you can check on how to run native modules with expo.

@ammarahm-ed
Copy link
Owner

halaei pushed a commit to halaei/react-native-admob-native-ads that referenced this issue Apr 24, 2021
ammarahm-ed pushed a commit that referenced this issue Jul 12, 2021
Ios request promise and match Android return type
ammarahm-ed pushed a commit that referenced this issue Oct 21, 2021
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

2 participants