callstack / callstack/react-native-fbads

Problem implementing Native Ads

オープン
#355 コメント 0 件 リアクション 0 件 担当者 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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

components/NativeBanner に示されているコンポーネントから始め、withNativeAd の使用方法を react-native-fbads 7.0.5 のドキュメントおよび NativeAdsManager API と比較してください。提供されたバージョンを使用して Android のケースを再現し、そのうえで nativeAd を呼び出し元と manager のどちらが提供すべきかを確認し、実装とドキュメントが一致していることを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, react-native
領域
mobile
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
40/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。