Open raghunathmestry opened 3 years ago
please help me as soon as possible, their is no any alternate of react native unity advertisement. I am trying very hard.
found any solution?
android/unity-ads 에 있는 "unity-ads.arr" 파일 버전을 3.7.5 버전으로 다운로드 받아서 사용해보세요
below is my code
import * as React from 'react'; import { StyleSheet, View, Text, Button } from 'react-native'; import UnityAds from 'react-native-unity-ads-moon';
export default function UnityAdd() {
React.useEffect(() => { UnityAds.loadAd('4058639', 'video', DEV) }, []);
const showAd = async () => { UnityAds.isLoad().then(isLoad=>{ if(isLoad){ UnityAds.showAd().then((result)=>{ console.log(result); }).catch(error=>{ console.log(error); }); } }) }
return (
); }
const styles = StyleSheet.create({ container: { flex: 1, alignItems: 'center', justifyContent: 'center', }, });
below is the manual settings.
Inside unity-ads folder
![second](https://user-images.githubusercontent.com/35745713/109068864-702e4b00-7716-11eb-9ff0-912cdd69663e.jpg)