我想将 IronSource 广告网络与我的 React Native 项目集成
I want to integrate IronSource ad network with my react native project
我找到了一个将 IronSource 广告网络与我的 React Native 项目集成的框架 here。
我在互联网上搜索了很多,并且已经尝试在存储库中打开一个问题,但没有成功。
我按照自述文件中所说的那样做了:
首先安装依赖[=15=]
npm install @wowmaking/react-native-iron-source --save
然后链接依赖项
react-native link @wowmaking/react-native-iron-source
最后导入依赖项
import { IronSource } from '@wowmaking/react-native-iron-source';
但是当我尝试 运行 我的应用程序时,我收到了这个错误:
native module cant be null
我不知道我做的对不对,请大家帮忙!
我正在使用 React Native 0.60.5
通过以下方式重新构建您的项目:
react-native run-android
我是 @wowmaking/react-native-iron-source
的贡献者。
上个月针对 RN 60 更新了自述文件。对于 RN 60,您不再需要 link 它。
npm install @wowmaking/react-native-iron-source --save
将存储库添加到您的 android/app/build.gradle 文件
allprojects {
repositories {
// Existing repos here
// ...
maven { url "https://dl.bintray.com/ironsource-mobile/android-sdk" }
}
}
您已准备好 运行 您的应用。
- 添加您需要的中介网络。按照官方文档。
https://github.com/wowmaking/react-native-iron-source#mediation-setup
我找到了一个将 IronSource 广告网络与我的 React Native 项目集成的框架 here。
我在互联网上搜索了很多,并且已经尝试在存储库中打开一个问题,但没有成功。
我按照自述文件中所说的那样做了:
首先安装依赖[=15=]
npm install @wowmaking/react-native-iron-source --save
然后链接依赖项
react-native link @wowmaking/react-native-iron-source
最后导入依赖项
import { IronSource } from '@wowmaking/react-native-iron-source';
但是当我尝试 运行 我的应用程序时,我收到了这个错误:
native module cant be null
我不知道我做的对不对,请大家帮忙!
我正在使用 React Native 0.60.5
通过以下方式重新构建您的项目:
react-native run-android
我是 @wowmaking/react-native-iron-source
的贡献者。
上个月针对 RN 60 更新了自述文件。对于 RN 60,您不再需要 link 它。
npm install @wowmaking/react-native-iron-source --save
将存储库添加到您的 android/app/build.gradle 文件
allprojects {
repositories {
// Existing repos here
// ...
maven { url "https://dl.bintray.com/ironsource-mobile/android-sdk" }
}
}
您已准备好 运行 您的应用。
- 添加您需要的中介网络。按照官方文档。 https://github.com/wowmaking/react-native-iron-source#mediation-setup