callstack / callstack/react-native-fbads
Problem implementing Native Ads
- Lingua principale
- Java
- Stelle
- 451
- Fork
- 147
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
# 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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con il componente mostrato in components/NativeBanner e confronta il suo utilizzo di withNativeAd con la documentazione di react-native-fbads 7.0.5 e l'API NativeAdsManager. Riproduci il caso Android utilizzando le versioni fornite, quindi verifica se nativeAd debba essere fornito dal chiamante o dal manager e assicurati che implementazione e documentazione siano coerenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react-native
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 40/100