react-native-fbads
react-native-fbads copied to clipboard
Require cycle warning in console
Error Message : Require cycle: node_modules/react-native-fbads/dist/lib/index.js -> node_modules/react-native-fbads/dist/lib/native-ads/withNativeAd.js -> node_modules/react-native-fbads/dist/lib/index.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
Am i the only one having this messange in my console ? Can´t find some help in the other issues :(
same here
Same, any update?
Require cycle: node_modules/react-native-fbads/dist/lib/index.js -> node_modules/react-native-fbads/dist/lib/native-ads/withNativeAd.js -> node_modules/react-native-fbads/dist/lib/index.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
Got It to, is there any update ?
I think we need to manual update "node_modules/react-native-fbads/dist/lib/native-ads/withNativeAd.js" file from :
import { AdIconView, MediaView } from '../index';
to :
import { MediaView } from './MediaViewManager';
import { AdIconView } from './AdIconViewManager';
The message was gone after i'm doing that.
same problem react native facebook ads not showing getting this error
error {"_dispatchInstances": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "_debugSource": {"columnNumber": 13, "fileName": "D:\react\react native\project\seven\FakeCall\node_modules\react-native-fbads\dist\lib\BannerViewManager.js", "lineNumber": 23}, "actualDuration": 8, "actualStartTime": 3696, "alternate": null, "child": null, "childExpirationTime": 0, "dependencies": null, "effectTag": 0, "elementType": "CTKBannerView", "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": {"onAdError": [Function onError], "onAdLoad": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": {"onAdError": [Function onError], "onAdLoad": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "ref": null, "return": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "selfBaseDuration": 0, "sibling": null, "stateNode": {"_children": [Array], "_internalFiberInstanceHandleDEV": [Circular], "_nativeTag": 155, "viewConfig": [Object]}, "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "_dispatchListeners": [Function onError], "_targetInst": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "_debugSource": {"columnNumber": 13, "fileName": "D:\react\react native\project\seven\FakeCall\node_modules\react-native-fbads\dist\lib\BannerViewManager.js", "lineNumber": 23}, "actualDuration": 8, "actualStartTime": 3696, "alternate": null, "child": null, "childExpirationTime": 0, "dependencies": null, "effectTag": 0, "elementType": "CTKBannerView", "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": {"onAdError": [Function onError], "onAdLoad": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": {"onAdError": [Function onError], "onAdLoad": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "ref": null, "return": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "selfBaseDuration": 0, "sibling": null, "stateNode": {"_children": [Array], "_internalFiberInstanceHandleDEV": [Circular], "_nativeTag": 155, "viewConfig": [Object]}, "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "bubbles": undefined, "cancelable": undefined, "currentTarget": {"_children": [], "_internalFiberInstanceHandleDEV": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 8, "actualStartTime": 3696, "alternate": null, "child": null, "childExpirationTime": 0, "dependencies": null, "effectTag": 0, "elementType": "CTKBannerView", "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 0, "sibling": null, "stateNode": [Circular], "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "_nativeTag": 155, "viewConfig": {"NativeProps": [Object], "bubblingEventTypes": undefined, "directEventTypes": [Object], "uiViewClassName": "CTKBannerView", "validAttributes": [Object]}}, "defaultPrevented": undefined, "dispatchConfig": {"registrationName": "onAdError"}, "eventPhase": undefined, "isDefaultPrevented": [Function functionThatReturnsFalse], "isPropagationStopped": [Function functionThatReturnsFalse], "isTrusted": undefined, "nativeEvent": {"errorCode": 1001, "errorMessage": "No fill"}, "target": {"_children": [], "_internalFiberInstanceHandleDEV": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 8, "actualStartTime": 3696, "alternate": null, "child": null, "childExpirationTime": 0, "dependencies": null, "effectTag": 0, "elementType": "CTKBannerView", "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 0, "sibling": null, "stateNode": [Circular], "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "_nativeTag": 155, "viewConfig": {"NativeProps": [Object], "bubblingEventTypes": undefined, "directEventTypes": [Object], "uiViewClassName": "CTKBannerView", "validAttributes": [Object]}}, "timeStamp": 1618567944364, "type": undefined}
same problem react native facebook ads not showing getting this error
error {"_dispatchInstances": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "_debugSource": {"columnNumber": 13, "fileName": "D:\react\react native\project\seven\FakeCall\node_modules\react-native-fbads\dist\lib\BannerViewManager.js", "lineNumber": 23}, "actualDuration": 8, "actualStartTime": 3696, "alternate": null, "child": null, "childExpirationTime": 0, "dependencies": null, "effectTag": 0, "elementType": "CTKBannerView", "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": {"onAdError": [Function onError], "onAdLoad": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": {"onAdError": [Function onError], "onAdLoad": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "ref": null, "return": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "selfBaseDuration": 0, "sibling": null, "stateNode": {"_children": [Array], "_internalFiberInstanceHandleDEV": [Circular], "_nativeTag": 155, "viewConfig": [Object]}, "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "_dispatchListeners": [Function onError], "_targetInst": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "_debugSource": {"columnNumber": 13, "fileName": "D:\react\react native\project\seven\FakeCall\node_modules\react-native-fbads\dist\lib\BannerViewManager.js", "lineNumber": 23}, "actualDuration": 8, "actualStartTime": 3696, "alternate": null, "child": null, "childExpirationTime": 0, "dependencies": null, "effectTag": 0, "elementType": "CTKBannerView", "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": {"onAdError": [Function onError], "onAdLoad": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": {"onAdError": [Function onError], "onAdLoad": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "ref": null, "return": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "selfBaseDuration": 0, "sibling": null, "stateNode": {"_children": [Array], "_internalFiberInstanceHandleDEV": [Circular], "_nativeTag": 155, "viewConfig": [Object]}, "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "bubbles": undefined, "cancelable": undefined, "currentTarget": {"_children": [], "_internalFiberInstanceHandleDEV": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 8, "actualStartTime": 3696, "alternate": null, "child": null, "childExpirationTime": 0, "dependencies": null, "effectTag": 0, "elementType": "CTKBannerView", "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 0, "sibling": null, "stateNode": [Circular], "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "_nativeTag": 155, "viewConfig": {"NativeProps": [Object], "bubblingEventTypes": undefined, "directEventTypes": [Object], "uiViewClassName": "CTKBannerView", "validAttributes": [Object]}}, "defaultPrevented": undefined, "dispatchConfig": {"registrationName": "onAdError"}, "eventPhase": undefined, "isDefaultPrevented": [Function functionThatReturnsFalse], "isPropagationStopped": [Function functionThatReturnsFalse], "isTrusted": undefined, "nativeEvent": {"errorCode": 1001, "errorMessage": "No fill"}, "target": {"_children": [], "_internalFiberInstanceHandleDEV": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 8, "actualStartTime": 3696, "alternate": null, "child": null, "childExpirationTime": 0, "dependencies": null, "effectTag": 0, "elementType": "CTKBannerView", "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 0, "sibling": null, "stateNode": [Circular], "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "_nativeTag": 155, "viewConfig": {"NativeProps": [Object], "bubblingEventTypes": undefined, "directEventTypes": [Object], "uiViewClassName": "CTKBannerView", "validAttributes": [Object]}}, "timeStamp": 1618567944364, "type": undefined}
Hi, Did you resolve this error?