From 2d1c80bf6a02ea6319d6ad76c97238d3656a2e42 Mon Sep 17 00:00:00 2001 From: "Nyasha (Nash) Nziramasanga" <47994666+NyashaNziramasanga@users.noreply.github.com> Date: Tue, 6 Jul 2021 01:01:35 +0930 Subject: [PATCH] Typo on renderItem --- example/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/App.tsx b/example/App.tsx index 20d1cea..2bc50a8 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -14,7 +14,7 @@ const LN_CENTER_COLOR = '#0B5FA500'; const Items = Array.from(Array(20).keys()); -const rednerItem = (item: number, index: number) => ( +const renderItem = (item: number, index: number) => ( { @@ -32,7 +32,7 @@ export default function App() { defaultIndex={18} animatedScrollToDefaultIndex data={Items} - renderItem={rednerItem} + renderItem={renderItem} itemWidth={80} />