Skip to content

Commit

Permalink
fix: post merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Dec 20, 2024
1 parent 951543c commit 1b5e9d7
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Str} from 'expensify-common';
import type {ForwardedRef} from 'react';
import type {ForwardedRef, MutableRefObject} from 'react';
import React, {forwardRef, useCallback, useEffect, useMemo, useRef, useState} from 'react';
import type {GestureResponderEvent, LayoutChangeEvent, NativeSyntheticEvent, StyleProp, TextInputFocusEventData, ViewStyle} from 'react-native';
import type {GestureResponderEvent, LayoutChangeEvent, NativeSyntheticEvent, StyleProp, TextInput, TextInputFocusEventData, ViewStyle} from 'react-native';
import {ActivityIndicator, StyleSheet, View} from 'react-native';
import {useSharedValue, withSpring} from 'react-native-reanimated';
import Checkbox from '@components/Checkbox';
Expand All @@ -19,6 +19,7 @@ import type {BaseTextInputProps, BaseTextInputRef} from '@components/TextInput/B
import * as styleConst from '@components/TextInput/styleConst';
import TextInputClearButton from '@components/TextInput/TextInputClearButton';
import TextInputLabel from '@components/TextInput/TextInputLabel';
import useHtmlPaste from '@hooks/useHtmlPaste';
import useLocalize from '@hooks/useLocalize';
import useMarkdownStyle from '@hooks/useMarkdownStyle';
import useStyleUtils from '@hooks/useStyleUtils';
Expand Down Expand Up @@ -107,6 +108,8 @@ function BaseTextInput(
const isLabelActive = useRef(initialActiveLabel);
const didScrollToEndRef = useRef(false);

useHtmlPaste(input as MutableRefObject<TextInput | null>, undefined, isMarkdownEnabled);

// AutoFocus which only works on mount:
useEffect(() => {
// We are manually managing focus to prevent this issue: https://github.com/Expensify/App/issues/4514
Expand Down

0 comments on commit 1b5e9d7

Please sign in to comment.