Skip to content

Commit 487426f

Browse files
committed
fix prettier & add comments
1 parent e3031f0 commit 487426f

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const restrictedImportPaths = [
1414
'Text',
1515
'ScrollView',
1616
'Animated',
17-
'findNodeHandle'
17+
'findNodeHandle',
1818
],
1919
message: [
2020
'',

src/pages/home/report/ReportActionItemMessageEdit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ import setShouldShowComposeInputKeyboardAware from '@libs/setShouldShowComposeIn
4545
import CONST from '@src/CONST';
4646
import ONYXKEYS from '@src/ONYXKEYS';
4747
import type * as OnyxTypes from '@src/types/onyx';
48-
import KeyboardUtils from '@src/utils/keyboard';
4948
import findNodeHandle from '@src/utils/findNodeHandle';
49+
import KeyboardUtils from '@src/utils/keyboard';
5050
import * as ReportActionContextMenu from './ContextMenu/ReportActionContextMenu';
5151
import getCursorPosition from './ReportActionCompose/getCursorPosition';
5252
import getScrollPosition from './ReportActionCompose/getScrollPosition';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// eslint-disable-next-line no-restricted-imports
22
import {findNodeHandle} from 'react-native';
33

4+
/** Don't add new `findNodeHandle` usages, this is only a temporary solution. We're going to remove the function in the future */
45
export default findNodeHandle;

src/utils/findNodeHandle/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import type { Component, ComponentClass } from 'react';
2-
import type { NodeHandle } from 'react-native/Libraries/ReactNative/RendererProxy';
1+
import type {Component, ComponentClass} from 'react';
2+
import type {NodeHandle} from 'react-native/Libraries/ReactNative/RendererProxy';
33

4+
/** Don't add new `findNodeHandle` usages, this is only a temporary solution. We're going to remove the function in the future */
45
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
56
function findNodeHandle(componentOrHandle: null | number | Component<any, any> | ComponentClass<any>): null | NodeHandle {
67
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)