Skip to content

Commit

Permalink
fix warning in example in list
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Nov 17, 2020
1 parent 0c96333 commit 2794f5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
];
}

Expand Down Expand Up @@ -206,6 +207,7 @@ const App = () => {
height: 300,
width: '100%',
}}
keyExtractor={(item) => item}
data={listItemsGenerator(10)}
renderItem={({item, index}) =>
item === 'ad' ? (
Expand Down
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2794f5a

Please sign in to comment.