callstack / callstack/react-native-fbads

Problem implementing Native Ads

未关闭
#355 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
451
派生
147
PR 合并指标
30 天内没有已合并 PR

描述

# Bug Report

**Before opening**

- [x ] Did you try the latest release?
- [x ] Did you look for existing issues?

**Ad Modules**

Native Ads

**Platforms**
Android

**Versions**

- Android: >9
- react-native-fbads: 7.0.5
- react-native: 0.70.8

**Current Behaviour**

**1. I created a file for the component :**

```
import React from 'react';
import { View, Text } from 'react-native';
import {
withNativeAd,
AdIconView,
TriggerableView,
MediaView,
} from 'react-native-fbads';

const AdComponent = ({ nativeAd }) => {
return (




{nativeAd.description}


);
};

export const MyNativeAd = withNativeAd(AdComponent);
```

**1. Inside the screen where I want to display this ad :**

```
import { InterstitialAdManager, AdSettings, NativeAdsManager } from 'react-native-fbads';
import { MyNativeAd } from 'components/NativeBanner';
...
let nativeAdsManager: NativeAdsManager = new NativeAdsManager(PLACEMENT_ID);
...
export const Myscreen = () => {



}
```
As you can see in the code above, I must provide a nativeAd property to the MyNativeAd component.

**Expected Behaviour**
The created component should ask only for `adsManager` property, however it asks for `nativeAd` also, which is deferent from what the documentation shows.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。