From 3a67f1dd13aa605861f5a45aa9a2d238aa6ba29b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20J=2E=20G=C3=B6decke?= Date: Mon, 14 Oct 2024 13:48:38 +0200 Subject: [PATCH] forward ref correctly --- src/components/Composer/index.e2e.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Composer/index.e2e.tsx b/src/components/Composer/index.e2e.tsx index f28f13fe0ecf..c56685df239f 100644 --- a/src/components/Composer/index.e2e.tsx +++ b/src/components/Composer/index.e2e.tsx @@ -1,4 +1,5 @@ import type {ForwardedRef} from 'react'; +import React from 'react'; import type {TextInput} from 'react-native'; import Composer from './implementation'; import type {ComposerProps} from './types'; @@ -15,4 +16,4 @@ function ComposerE2e(props: ComposerProps, ref: ForwardedRef) { ); } -export default ComposerE2e; +export default React.forwardRef(ComposerE2e);