From ab40739d453f6233144d351abf7c3671ae478577 Mon Sep 17 00:00:00 2001 From: Fernando Maia Date: Wed, 12 Jul 2023 15:28:49 -0300 Subject: [PATCH] fix(#5764): fix srprovider checking react version --- src/core/NativeBaseProvider.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/NativeBaseProvider.tsx b/src/core/NativeBaseProvider.tsx index f2fb5d477..573fdade3 100644 --- a/src/core/NativeBaseProvider.tsx +++ b/src/core/NativeBaseProvider.tsx @@ -94,7 +94,11 @@ const NativeBaseProvider = (props: NativeBaseProviderProps) => { - {children} + {React.version >= '18' ? ( + { children } + ) : ( + {children} + )}