Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
izetmolla committed Jul 25, 2021
1 parent 5395e3e commit a103059
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/AdmobBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const AdmobBanner = ({ style, onSizeChange, onAdFailedToLoad, ...res }) => {
loadBanner();
});
const loadBanner = () => {
UIManager.dispatchViewManagerCommand(findNodeHandle(_bannerView), UIManager.getViewManagerConfig("RNGADBannerView").Commands
UIManager.dispatchViewManagerCommand(findNodeHandle(_bannerView.current), UIManager.getViewManagerConfig("RNGADBannerView").Commands
.loadBanner, undefined);
};
const handleSizeChange = (event) => {
Expand Down
2 changes: 1 addition & 1 deletion src/AdmobBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const AdmobBanner: FC<AdmobBannerTypes> = ({

const loadBanner = () => {
UIManager.dispatchViewManagerCommand(
findNodeHandle(_bannerView),
findNodeHandle(_bannerView.current),
UIManager.getViewManagerConfig("RNGADBannerView").Commands
.loadBanner,
undefined
Expand Down

0 comments on commit a103059

Please sign in to comment.