From 86d5e8ae62040bbe9901a7e39e0845072a8fa7da Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Thu, 14 Dec 2023 14:29:38 +0100 Subject: [PATCH] set keyboard appearance --- src/components/RNTextInput.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/RNTextInput.tsx b/src/components/RNTextInput.tsx index 28555abe3266..ff812e7c799b 100644 --- a/src/components/RNTextInput.tsx +++ b/src/components/RNTextInput.tsx @@ -2,16 +2,20 @@ import React, {ForwardedRef} from 'react'; // eslint-disable-next-line no-restricted-imports import {TextInput, TextInputProps} from 'react-native'; import Animated, {AnimatedProps} from 'react-native-reanimated'; +import useTheme from '@hooks/useTheme'; // Convert the underlying TextInput into an Animated component so that we can take an animated ref and pass it to a worklet const AnimatedTextInput = Animated.createAnimatedComponent(TextInput); // eslint-disable-next-line @typescript-eslint/no-explicit-any function RNTextInputWithRef(props: TextInputProps, ref: ForwardedRef>>) { + const theme = useTheme(); + return ( { if (typeof ref !== 'function') { return;