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

Expo plug-in does not work #326

Open
rachellauyui opened this issue May 13, 2022 · 6 comments
Open

Expo plug-in does not work #326

rachellauyui opened this issue May 13, 2022 · 6 comments

Comments

@rachellauyui
Copy link

I am using Expo (updated to Expo SDK 45), and once I add below plugin as specified in the instruction, an error of "Package "react-native-fbads" does not contain a valid config plugin". I would highly appreciate a complete installation guide for Expo. Many thanks!

{
"expo": {
"plugins": [
[
"react-native-fbsdk-next",
{
"appID": "48127127xxxxxxxx",
"clientToken": "c5078631e4065b60d7544a95xxxxxxxx",
"displayName": "RN SDK Demo",
"advertiserIDCollectionEnabled": false,
"autoLogAppEventsEnabled": false,
"isAutoInitEnabled": true,
"iosUserTrackingPermission": "This identifier will be used to deliver personalized ads to you."
}
],
"react-native-fbads"
]
}
}

@HamzaAitOumghar
Copy link

same here

@moa-os
Copy link

moa-os commented May 19, 2022

same here, any soultion?

@ErikTromp
Copy link

Same here. If I continue without the plugin, I get the following iOS error:

› Compiling react-native-fbads Pods/ReactNativeAdsFacebook » EXAdSettingsManager.m


❌  (node_modules/react-native-fbads/ios/ReactNativeAdsFacebook/EXAdSettingsManager.m:10:9)

   8 | #import <AppTrackingTransparency/AppTrackingTransparency.h>
   9 | 
> 10 | #import <FBSDKCoreKit/FBSDKSettings.h>
     |         ^ 'FBSDKCoreKit/FBSDKSettings.h' file not found
  11 | 
  12 | @implementation RCTConvert (EXNativeAdView)

@HamzaAitOumghar
Copy link

HamzaAitOumghar commented Jun 22, 2022

@ErikTromp same in android without the plugin

[22:32:09] Android Bundling failed 2766ms
[22:32:09] While trying to resolve module `react-native-fbads` from file `C:\Users\****\Desktop\Native\****\App.js`, the package `C:\Users\****\Desktop\Native\****\node_modules\react-native-fbads\package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`C:\Users\****\Desktop\Native\****\node_modules\react-native-fbads\dist\lib\index.js`. Indeed, none of these files exist:
[22:32:09]
[22:32:09]   * C:\User\****\Desktop\Native\****\node_modules\react-native-fbads\dist\lib\index.js(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)

@simshengqin
Copy link

same problem, may I ask if anyone found a solution? Highly appreciate it, thank you!

@rachellauyui
Copy link
Author

rachellauyui commented Jun 30, 2022

Hi, FB is now bidding only, so I moved to Iron Source instead. And here is an article to walk you through using plug-in in Expo to use MAX. I did not try it myself but the explaination is quite thorough. Once you setup MAX, you can use it to bid with FB and other ad networks. Cheers!

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

5 participants