I'm encountering an issue in React Native while attempting to launch my app on IOS, where a warning message is displayed:
"Module AdChoiceManager requires main queue setup since it overrides 'init' but doesn't implement 'requiresMainQueueSetup'. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of."
Within my podfile, I have the following dependencies:
pod 'react-native-fbsdk', :path => '../node_modules/react-native-fbsdk'
pod 'FBAudienceNetwork', '~> 5.1.0'
An error occurs:
[!] /bin/bash -c
set -e
npm install --production
/bin/bash: line 2: npm: command not found
Thus, I attempted the following revision:
pod 'FBAudienceNetwork', '~> 5.1.0'
pod 'FacebookSDK'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
All installations are successful, yet the warning persists. While the functionality works well on Android, I am uncertain how to address Facebook Ads integration without encountering warnings on IOS.
My query is, what steps can I take to resolve this warning? Despite numerous attempts, I have been unable to remove it from the screen after several days of troubleshooting efforts.