react-native-fbads icon indicating copy to clipboard operation
react-native-fbads copied to clipboard

Expo plug-in does not work

Open rachellauyui opened this issue 2 years ago • 6 comments

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" ] } }

rachellauyui avatar May 13 '22 06:05 rachellauyui

same here

HamzaAitOumghar avatar May 16 '22 20:05 HamzaAitOumghar

same here, any soultion?

moa-os avatar May 19 '22 11:05 moa-os

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)

ErikTromp avatar May 26 '22 19:05 ErikTromp

@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)

HamzaAitOumghar avatar Jun 22 '22 21:06 HamzaAitOumghar

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

simshengqin avatar Jun 30 '22 15:06 simshengqin

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!

rachellauyui avatar Jun 30 '22 23:06 rachellauyui