react-native-fbads
react-native-fbads copied to clipboard
Expo plug-in does not work
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" ] } }
same here
same here, any soultion?
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 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)
same problem, may I ask if anyone found a solution? Highly appreciate it, thank you!
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!