From d0ced5d1e6b53e9573079399fe5b8fb98677cf15 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Fri, 17 Apr 2020 21:16:02 +0200 Subject: [PATCH] Fixed missing key warning --- src/components/Tabbar/CustomTabBar.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Tabbar/CustomTabBar.js b/src/components/Tabbar/CustomTabBar.js index 1f5bf3a..ca9208a 100644 --- a/src/components/Tabbar/CustomTabBar.js +++ b/src/components/Tabbar/CustomTabBar.js @@ -77,12 +77,15 @@ class CustomTabBar extends React.Component { label={label} focused={isFocused} extraData={state.index > index} + key={route.key} /> } else return + focused={isFocused} + key={route.key} + /> })} );