Skip to content

Commit f6d13e3

Browse files
committed
use nativeId to find view
1 parent aa28688 commit f6d13e3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ function ComposerWithSuggestions(
305305
if (!RNTextInputReset) {
306306
return;
307307
}
308-
RNTextInputReset.resetKeyboardInput(findNodeHandle(textInputRef.current));
309-
}, [textInputRef]);
308+
RNTextInputReset.resetKeyboardInput(CONST.COMPOSER.NATIVE_ID);
309+
}, []);
310310

311311
const debouncedSaveReportComment = useMemo(
312312
() =>

src/types/modules/react-native.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type AppStateTrackerModule = {
1515
};
1616

1717
type RNTextInputResetModule = {
18-
resetKeyboardInput: (nodeHandle: number | null) => void;
18+
resetKeyboardInput: (nodeHandle: string) => void;
1919
};
2020

2121
type RNNavBarManagerModule = {

0 commit comments

Comments
 (0)