diff --git a/src/index.js b/src/index.js index f3eeb69c..a92b0176 100644 --- a/src/index.js +++ b/src/index.js @@ -16,6 +16,13 @@ const testNativeAd = { images: ["https://dummyimage.com/qvga"], }; +const waitAsync = (ms) => + new Promise((resolve, reject) => { + setTimeout(() => { + resolve(true); + }, ms); + }); + const NativeAdView = (props) => { const [nativeAd, setNativeAd] = useState(null); const [forceRefresh, setForceRefresh] = useState(false); @@ -77,13 +84,6 @@ const NativeAdView = (props) => { } }, [props.enableTestMode]); - const waitAsync = (ms) => - new Promise((resolve, reject) => { - setTimeout(() => { - resolve(true); - }, ms); - }); - useEffect(() => { if (props.delayAdLoading) { delayAdLoadBy = props.delayAdLoading;