From 2794f5aaeae7930a4c37170c1d347b6e7ddb1663 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Wed, 18 Nov 2020 00:28:15 +0500 Subject: [PATCH] fix warning in example in list --- example/App.js | 4 +++- example/ios/Podfile.lock | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/example/App.js b/example/App.js index 05f78b6d..944cb04f 100644 --- a/example/App.js +++ b/example/App.js @@ -13,9 +13,10 @@ import {AdView} from './AdView'; function listItemsGenerator(num) { let list = []; for (var i = 0; i < num; i++) { + list = [ ...list, - ...['Apple', 'Banana', 'Orange', 'Pineapple', 'Pancakes', 'ad'], + ...['Apple ' + i, 'Banana ' + i, 'Orange ' + i, 'Pineapple ' + i, 'Pancakes ' + i, 'ad ' + i], ]; } @@ -206,6 +207,7 @@ const App = () => { height: 300, width: '100%', }} + keyExtractor={(item) => item} data={listItemsGenerator(10)} renderItem={({item, index}) => item === 'ad' ? ( diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 43dc24bd..295ab864 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -267,7 +267,7 @@ PODS: - React-cxxreact (= 0.63.0) - React-jsi (= 0.63.0) - React-jsinspector (0.63.0) - - react-native-admob-native-ads (0.3.6): + - react-native-admob-native-ads (0.3.7): - React-Core - React-RCTActionSheet (0.63.0): - React-Core/RCTActionSheetHeaders (= 0.63.0) @@ -497,7 +497,7 @@ SPEC CHECKSUMS: React-jsi: 254710f3a97e587427bfbf3011dacec2af66a1fc React-jsiexecutor: 0e0cb4e170ca72d4bb1179843d08dcbea3d100ac React-jsinspector: fc661eff8edbfb7e22119382c13f33bcadde0f3c - react-native-admob-native-ads: a1ed7242b5f206d5b9da41382cada126a7242d27 + react-native-admob-native-ads: 45419067714cec938ecd7dfc27ebd4de77b475dd React-RCTActionSheet: aadd91a1d6cbfae50dd41f140004f816e9e47ade React-RCTAnimation: 7fa2ef6c0ef1e3f0b7d2261c827ec94412deb5e6 React-RCTBlob: ccbbc70295aee3a76a70323b48f63fb7a7fcffd6