From cf9f6118f41d7fa33ff8535052ab258e0b60207a Mon Sep 17 00:00:00 2001 From: Lev Shapiro Date: Thu, 5 Oct 2023 22:36:14 +0300 Subject: [PATCH] Fix SSRProvider issue on React 18+ --- src/core/NativeBaseProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/NativeBaseProvider.tsx b/src/core/NativeBaseProvider.tsx index 43b4bd14b..8867311f1 100644 --- a/src/core/NativeBaseProvider.tsx +++ b/src/core/NativeBaseProvider.tsx @@ -94,7 +94,7 @@ const NativeBaseProvider = (props: NativeBaseProviderProps) => { - {children} + {React.version >= '18' ? children : {children}}