From 61548afa3b181feaeb770a9ca73ede79114d157a Mon Sep 17 00:00:00 2001 From: Ahmed Khelifi <47308272+ahmed-khlifi@users.noreply.github.com> Date: Sat, 22 Feb 2025 23:17:23 +0100 Subject: [PATCH] Update custom-navigators.md : Add missing variable In the TabNavigator example , isFocused Variable is using "index" variable to validate the condiation. However, in state.routes.map((route)...) the index variable is not defined which cause an error of no existing variable. --- versioned_docs/version-7.x/custom-navigators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioned_docs/version-7.x/custom-navigators.md b/versioned_docs/version-7.x/custom-navigators.md index 3d3e05397d..c8567fa848 100755 --- a/versioned_docs/version-7.x/custom-navigators.md +++ b/versioned_docs/version-7.x/custom-navigators.md @@ -81,7 +81,7 @@ function TabNavigator({ return ( - {state.routes.map((route) => ( + {state.routes.map((route, index) => ( {