diff --git a/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.tsx b/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.tsx index 48774699fcb5..bb3792f59d9f 100644 --- a/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.tsx +++ b/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.tsx @@ -1,7 +1,7 @@ import Str from 'expensify-common/lib/str'; import React, {useEffect, useRef} from 'react'; import type {Text as RNText} from 'react-native'; -import { StyleSheet} from 'react-native'; +import {StyleSheet} from 'react-native'; import PressableWithSecondaryInteraction from '@components/PressableWithSecondaryInteraction'; import Text from '@components/Text'; import Tooltip from '@components/Tooltip'; diff --git a/src/components/ArchivedReportFooter.tsx b/src/components/ArchivedReportFooter.tsx index 98736f39b96a..083c8340baa6 100644 --- a/src/components/ArchivedReportFooter.tsx +++ b/src/components/ArchivedReportFooter.tsx @@ -1,7 +1,7 @@ import lodashEscape from 'lodash/escape'; import React from 'react'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; import * as PersonalDetailsUtils from '@libs/PersonalDetailsUtils'; diff --git a/src/components/AutoCompleteSuggestions/BaseAutoCompleteSuggestions.tsx b/src/components/AutoCompleteSuggestions/BaseAutoCompleteSuggestions.tsx index 8ea3b3ac6c9e..fc3bf4659bd7 100644 --- a/src/components/AutoCompleteSuggestions/BaseAutoCompleteSuggestions.tsx +++ b/src/components/AutoCompleteSuggestions/BaseAutoCompleteSuggestions.tsx @@ -1,6 +1,6 @@ import {FlashList} from '@shopify/flash-list'; import type {ForwardedRef, ReactElement} from 'react'; -import React, { forwardRef, useCallback, useEffect, useMemo, useRef} from 'react'; +import React, {forwardRef, useCallback, useEffect, useMemo, useRef} from 'react'; import type {View} from 'react-native'; // We take ScrollView from this package to properly handle the scrolling of AutoCompleteSuggestions in chats since one scroll is nested inside another import {ScrollView} from 'react-native-gesture-handler'; diff --git a/src/components/Avatar.tsx b/src/components/Avatar.tsx index 5f25229a9a97..4da91c2e7d19 100644 --- a/src/components/Avatar.tsx +++ b/src/components/Avatar.tsx @@ -1,6 +1,6 @@ import React, {useEffect, useState} from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useNetwork from '@hooks/useNetwork'; import useStyleUtils from '@hooks/useStyleUtils'; import useTheme from '@hooks/useTheme'; diff --git a/src/components/AvatarWithDisplayName.tsx b/src/components/AvatarWithDisplayName.tsx index 024ca0243d12..4580f3b7e4d4 100644 --- a/src/components/AvatarWithDisplayName.tsx +++ b/src/components/AvatarWithDisplayName.tsx @@ -1,7 +1,7 @@ import React, {useCallback, useEffect, useRef} from 'react'; import {View} from 'react-native'; import type {OnyxCollection, OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import type {ValueOf} from 'type-fest'; import useStyleUtils from '@hooks/useStyleUtils'; import useTheme from '@hooks/useTheme'; diff --git a/src/components/Badge.tsx b/src/components/Badge.tsx index f49068f601fd..5be33e6ff2ec 100644 --- a/src/components/Badge.tsx +++ b/src/components/Badge.tsx @@ -1,6 +1,6 @@ import React, {useCallback} from 'react'; import type {GestureResponderEvent, PressableStateCallbackType, StyleProp, TextStyle, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useStyleUtils from '@hooks/useStyleUtils'; import useThemeStyles from '@hooks/useThemeStyles'; import CONST from '@src/CONST'; diff --git a/src/components/Banner.tsx b/src/components/Banner.tsx index acb6d377bfa9..56fe7c4d0b42 100644 --- a/src/components/Banner.tsx +++ b/src/components/Banner.tsx @@ -1,6 +1,6 @@ import React, {memo} from 'react'; import type {StyleProp, TextStyle, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useLocalize from '@hooks/useLocalize'; import useStyleUtils from '@hooks/useStyleUtils'; import useTheme from '@hooks/useTheme'; diff --git a/src/components/BaseMiniContextMenuItem.tsx b/src/components/BaseMiniContextMenuItem.tsx index 44a259e50e4d..1f9a14cdfdee 100644 --- a/src/components/BaseMiniContextMenuItem.tsx +++ b/src/components/BaseMiniContextMenuItem.tsx @@ -1,7 +1,7 @@ import type {ForwardedRef} from 'react'; import React from 'react'; import type {PressableStateCallbackType} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useStyleUtils from '@hooks/useStyleUtils'; import useThemeStyles from '@hooks/useThemeStyles'; import DomUtils from '@libs/DomUtils'; diff --git a/src/components/BlockingViews/BlockingView.tsx b/src/components/BlockingViews/BlockingView.tsx index e343e9b54ee4..edec30604b88 100644 --- a/src/components/BlockingViews/BlockingView.tsx +++ b/src/components/BlockingViews/BlockingView.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {ImageSourcePropType} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import type {SvgProps} from 'react-native-svg'; import AutoEmailLink from '@components/AutoEmailLink'; import Icon from '@components/Icon'; diff --git a/src/components/Breadcrumbs.tsx b/src/components/Breadcrumbs.tsx index fe623f773f99..6af3a4c6d477 100644 --- a/src/components/Breadcrumbs.tsx +++ b/src/components/Breadcrumbs.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import LogoComponent from '@assets/images/expensify-wordmark.svg'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index 993fdc579f0c..dd0499d4d243 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -1,7 +1,7 @@ import {useIsFocused} from '@react-navigation/native'; import type {ForwardedRef} from 'react'; -import React, { useCallback} from 'react'; -import type { GestureResponderEvent, StyleProp, TextStyle, ViewStyle} from 'react-native'; +import React, {useCallback} from 'react'; +import type {GestureResponderEvent, StyleProp, TextStyle, ViewStyle} from 'react-native'; import {ActivityIndicator, View} from 'react-native'; import Icon from '@components/Icon'; import * as Expensicons from '@components/Icon/Expensicons'; diff --git a/src/components/CardPreview.tsx b/src/components/CardPreview.tsx index 827e2f99dd5a..3ac56d6b26a8 100644 --- a/src/components/CardPreview.tsx +++ b/src/components/CardPreview.tsx @@ -1,7 +1,7 @@ import React from 'react'; import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import ExpensifyCardImage from '@assets/images/expensify-card.svg'; import usePrivatePersonalDetails from '@hooks/usePrivatePersonalDetails'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/Checkbox.tsx b/src/components/Checkbox.tsx index 82038125f229..7e7720b57a6e 100644 --- a/src/components/Checkbox.tsx +++ b/src/components/Checkbox.tsx @@ -1,7 +1,7 @@ -import React, { forwardRef } from 'react'; +import React, {forwardRef} from 'react'; import type {ForwardedRef, MouseEventHandler, KeyboardEvent as ReactKeyboardEvent} from 'react'; import type {GestureResponderEvent, StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useStyleUtils from '@hooks/useStyleUtils'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/CheckboxWithLabel.tsx b/src/components/CheckboxWithLabel.tsx index 5eb46939395d..a25ccf184f52 100644 --- a/src/components/CheckboxWithLabel.tsx +++ b/src/components/CheckboxWithLabel.tsx @@ -1,7 +1,7 @@ import type {ComponentType, ForwardedRef} from 'react'; -import React, { useState} from 'react'; +import React, {useState} from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; import variables from '@styles/variables'; import Checkbox from './Checkbox'; diff --git a/src/components/Composer/index.android.tsx b/src/components/Composer/index.android.tsx index f00f8b4aac24..d60a41e0f263 100644 --- a/src/components/Composer/index.android.tsx +++ b/src/components/Composer/index.android.tsx @@ -1,6 +1,6 @@ import type {ForwardedRef} from 'react'; -import React, { useCallback, useEffect, useMemo, useRef} from 'react'; -import type { TextInput} from 'react-native'; +import React, {useCallback, useEffect, useMemo, useRef} from 'react'; +import type {TextInput} from 'react-native'; import {StyleSheet} from 'react-native'; import RNTextInput from '@components/RNTextInput'; import useTheme from '@hooks/useTheme'; diff --git a/src/components/Composer/index.ios.tsx b/src/components/Composer/index.ios.tsx index c25212b74460..b1357fef9a46 100644 --- a/src/components/Composer/index.ios.tsx +++ b/src/components/Composer/index.ios.tsx @@ -1,6 +1,6 @@ import type {ForwardedRef} from 'react'; -import React, { useCallback, useEffect, useMemo, useRef} from 'react'; -import type { TextInput} from 'react-native'; +import React, {useCallback, useEffect, useMemo, useRef} from 'react'; +import type {TextInput} from 'react-native'; import {StyleSheet} from 'react-native'; import RNTextInput from '@components/RNTextInput'; import useTheme from '@hooks/useTheme'; diff --git a/src/components/Composer/index.tsx b/src/components/Composer/index.tsx index 8f7f55b0a68d..19b7bb6bb30a 100755 --- a/src/components/Composer/index.tsx +++ b/src/components/Composer/index.tsx @@ -1,10 +1,10 @@ import {useNavigation} from '@react-navigation/native'; import ExpensiMark from 'expensify-common/lib/ExpensiMark'; import type {BaseSyntheticEvent, ForwardedRef} from 'react'; -import React, { useCallback, useEffect, useMemo, useRef, useState} from 'react'; +import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react'; import {flushSync} from 'react-dom'; import type {DimensionValue, NativeSyntheticEvent, Text as RNText, TextInput, TextInputKeyPressEventData, TextInputProps, TextInputSelectionChangeEventData} from 'react-native'; -import { StyleSheet, View} from 'react-native'; +import {StyleSheet, View} from 'react-native'; import type {AnimatedProps} from 'react-native-reanimated'; import RNTextInput from '@components/RNTextInput'; import Text from '@components/Text'; diff --git a/src/components/ConfirmContent.tsx b/src/components/ConfirmContent.tsx index 4e907065c9c0..94146a2c2957 100644 --- a/src/components/ConfirmContent.tsx +++ b/src/components/ConfirmContent.tsx @@ -1,7 +1,7 @@ import type {ReactNode} from 'react'; import React from 'react'; import type {StyleProp, TextStyle, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useLocalize from '@hooks/useLocalize'; import useNetwork from '@hooks/useNetwork'; import useTheme from '@hooks/useTheme'; diff --git a/src/components/CurrentWalletBalance.tsx b/src/components/CurrentWalletBalance.tsx index 6808ebbcbc1a..8761b50465f3 100644 --- a/src/components/CurrentWalletBalance.tsx +++ b/src/components/CurrentWalletBalance.tsx @@ -1,7 +1,7 @@ import React from 'react'; import type {StyleProp, TextStyle} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import useThemeStyles from '@hooks/useThemeStyles'; import * as CurrencyUtils from '@libs/CurrencyUtils'; import ONYXKEYS from '@src/ONYXKEYS'; diff --git a/src/components/DeeplinkWrapper/DeeplinkRedirectLoadingIndicator.tsx b/src/components/DeeplinkWrapper/DeeplinkRedirectLoadingIndicator.tsx index edc55aeafef6..27d8027bbcff 100644 --- a/src/components/DeeplinkWrapper/DeeplinkRedirectLoadingIndicator.tsx +++ b/src/components/DeeplinkWrapper/DeeplinkRedirectLoadingIndicator.tsx @@ -1,7 +1,7 @@ import React from 'react'; import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import Icon from '@components/Icon'; import * as Expensicons from '@components/Icon/Expensicons'; import * as Illustrations from '@components/Icon/Illustrations'; diff --git a/src/components/DisplayNames/DisplayNamesTooltipItem.tsx b/src/components/DisplayNames/DisplayNamesTooltipItem.tsx index db6023b0215e..5d2bc2decd7a 100644 --- a/src/components/DisplayNames/DisplayNamesTooltipItem.tsx +++ b/src/components/DisplayNames/DisplayNamesTooltipItem.tsx @@ -1,5 +1,5 @@ import type {RefObject} from 'react'; -import React, { useCallback} from 'react'; +import React, {useCallback} from 'react'; import type {Text as RNText, StyleProp, TextStyle} from 'react-native'; import Text from '@components/Text'; import UserDetailsTooltip from '@components/UserDetailsTooltip'; diff --git a/src/components/DisplayNames/DisplayNamesWithTooltip.tsx b/src/components/DisplayNames/DisplayNamesWithTooltip.tsx index 62da9a97a724..6a8953347b9c 100644 --- a/src/components/DisplayNames/DisplayNamesWithTooltip.tsx +++ b/src/components/DisplayNames/DisplayNamesWithTooltip.tsx @@ -1,6 +1,6 @@ import React, {Fragment, useCallback, useRef} from 'react'; import type {Text as RNText} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import Text from '@components/Text'; import Tooltip from '@components/Tooltip'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/DotIndicatorMessage.tsx b/src/components/DotIndicatorMessage.tsx index 11bc6d53b8fa..d18704fdfb05 100644 --- a/src/components/DotIndicatorMessage.tsx +++ b/src/components/DotIndicatorMessage.tsx @@ -1,7 +1,7 @@ /* eslint-disable react/no-array-index-key */ import React from 'react'; import type {StyleProp, TextStyle, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useStyleUtils from '@hooks/useStyleUtils'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/DraggableList/index.tsx b/src/components/DraggableList/index.tsx index 69a46ba47d5f..dc78a3ce6222 100644 --- a/src/components/DraggableList/index.tsx +++ b/src/components/DraggableList/index.tsx @@ -1,5 +1,5 @@ import React, {useCallback} from 'react'; -import {DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd'; +import {DragDropContext, Draggable, Droppable} from 'react-beautiful-dnd'; import type {OnDragEndResponder} from 'react-beautiful-dnd'; import {ScrollView} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/EmojiSuggestions.tsx b/src/components/EmojiSuggestions.tsx index 3a71abce01c9..5904b1521f98 100644 --- a/src/components/EmojiSuggestions.tsx +++ b/src/components/EmojiSuggestions.tsx @@ -1,5 +1,5 @@ import type {ReactElement} from 'react'; -import React, { useCallback} from 'react'; +import React, {useCallback} from 'react'; import {View} from 'react-native'; import useStyleUtils from '@hooks/useStyleUtils'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/ExpensifyWordmark.tsx b/src/components/ExpensifyWordmark.tsx index 3ef5f283b200..0e8f78686b07 100644 --- a/src/components/ExpensifyWordmark.tsx +++ b/src/components/ExpensifyWordmark.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import AdHocLogo from '@assets/images/expensify-logo--adhoc.svg'; import DevLogo from '@assets/images/expensify-logo--dev.svg'; import StagingLogo from '@assets/images/expensify-logo--staging.svg'; diff --git a/src/components/FixedFooter.tsx b/src/components/FixedFooter.tsx index 484113b0ca7d..35fa4d02f5e0 100644 --- a/src/components/FixedFooter.tsx +++ b/src/components/FixedFooter.tsx @@ -1,7 +1,7 @@ import type {ReactNode} from 'react'; import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; type FixedFooterProps = { diff --git a/src/components/FlatList/index.android.tsx b/src/components/FlatList/index.android.tsx index 3940e23c3667..863930203863 100644 --- a/src/components/FlatList/index.android.tsx +++ b/src/components/FlatList/index.android.tsx @@ -1,7 +1,7 @@ import {useFocusEffect} from '@react-navigation/native'; import type {ForwardedRef} from 'react'; -import React, { forwardRef, useCallback, useContext} from 'react'; -import type { FlatListProps} from 'react-native'; +import React, {forwardRef, useCallback, useContext} from 'react'; +import type {FlatListProps} from 'react-native'; import {FlatList} from 'react-native'; import {ActionListContext} from '@pages/home/ReportScreenContext'; diff --git a/src/components/FormAlertWithSubmitButton.tsx b/src/components/FormAlertWithSubmitButton.tsx index 56c1cd05cade..512d2063dc0f 100644 --- a/src/components/FormAlertWithSubmitButton.tsx +++ b/src/components/FormAlertWithSubmitButton.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; import Button from './Button'; import FormAlertWrapper from './FormAlertWrapper'; diff --git a/src/components/FormAlertWrapper.tsx b/src/components/FormAlertWrapper.tsx index 2811cdab65fa..65fa2311620d 100644 --- a/src/components/FormAlertWrapper.tsx +++ b/src/components/FormAlertWrapper.tsx @@ -1,7 +1,7 @@ import type {ReactNode} from 'react'; import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; import type Network from '@src/types/onyx/Network'; diff --git a/src/components/FormElement.tsx b/src/components/FormElement.tsx index dc7792c5e443..da98d4dc565a 100644 --- a/src/components/FormElement.tsx +++ b/src/components/FormElement.tsx @@ -1,6 +1,6 @@ import type {ForwardedRef} from 'react'; -import React, { forwardRef} from 'react'; -import type { ViewProps} from 'react-native'; +import React, {forwardRef} from 'react'; +import type {ViewProps} from 'react-native'; import {View} from 'react-native'; import * as ComponentUtils from '@libs/ComponentUtils'; diff --git a/src/components/FormHelpMessage.tsx b/src/components/FormHelpMessage.tsx index 6675f038c105..4f1d784788bf 100644 --- a/src/components/FormHelpMessage.tsx +++ b/src/components/FormHelpMessage.tsx @@ -1,7 +1,7 @@ import isEmpty from 'lodash/isEmpty'; import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import * as Localize from '@libs/Localize'; diff --git a/src/components/FormScrollView.tsx b/src/components/FormScrollView.tsx index 0b8583ec1071..ade167e9e628 100644 --- a/src/components/FormScrollView.tsx +++ b/src/components/FormScrollView.tsx @@ -1,6 +1,6 @@ import type {ForwardedRef} from 'react'; import React from 'react'; -import type { ScrollViewProps} from 'react-native'; +import type {ScrollViewProps} from 'react-native'; import {ScrollView} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/FormSubmit/index.tsx b/src/components/FormSubmit/index.tsx index 1adbfa288403..2ccd006bf322 100644 --- a/src/components/FormSubmit/index.tsx +++ b/src/components/FormSubmit/index.tsx @@ -1,5 +1,5 @@ import type {KeyboardEvent} from 'react'; -import React, { useEffect} from 'react'; +import React, {useEffect} from 'react'; import {View} from 'react-native'; import * as ComponentUtils from '@libs/ComponentUtils'; import isEnterWhileComposition from '@libs/KeyboardShortcut/isEnterWhileComposition'; diff --git a/src/components/FullscreenLoadingIndicator.tsx b/src/components/FullscreenLoadingIndicator.tsx index 143476a02446..bd3082db5fa4 100644 --- a/src/components/FullscreenLoadingIndicator.tsx +++ b/src/components/FullscreenLoadingIndicator.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import type { StyleProp, ViewStyle} from 'react-native'; +import type {StyleProp, ViewStyle} from 'react-native'; import {ActivityIndicator, StyleSheet, View} from 'react-native'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 01199c0a0559..25532107016f 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,7 +1,7 @@ import type {ReactNode} from 'react'; import React from 'react'; import type {StyleProp, TextStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; import EnvironmentBadge from './EnvironmentBadge'; import Text from './Text'; diff --git a/src/components/Hoverable/index.tsx b/src/components/Hoverable/index.tsx index e001f00ea968..9a68ccd74940 100644 --- a/src/components/Hoverable/index.tsx +++ b/src/components/Hoverable/index.tsx @@ -1,5 +1,5 @@ import type {ForwardedRef, MutableRefObject, ReactElement, RefAttributes} from 'react'; -import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState} from 'react'; +import React, {forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState} from 'react'; import {DeviceEventEmitter} from 'react-native'; import * as DeviceCapabilities from '@libs/DeviceCapabilities'; import CONST from '@src/CONST'; diff --git a/src/components/IFrame.tsx b/src/components/IFrame.tsx index b9943811d48d..ab27597aeebd 100644 --- a/src/components/IFrame.tsx +++ b/src/components/IFrame.tsx @@ -1,6 +1,6 @@ import React, {useEffect, useState} from 'react'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import ONYXKEYS from '@src/ONYXKEYS'; import type {Session} from '@src/types/onyx'; diff --git a/src/components/Icon/BankIcons/index.native.ts b/src/components/Icon/BankIcons/index.native.ts index cc4660f59392..61721512ec04 100644 --- a/src/components/Icon/BankIcons/index.native.ts +++ b/src/components/Icon/BankIcons/index.native.ts @@ -1,7 +1,7 @@ import GenericBank from '@assets/images/bankicons/generic-bank-account.svg'; import GenericBankCard from '@assets/images/cardicons/generic-bank-card.svg'; import type {BankIconParams} from '@components/Icon/BankIconsUtils'; -import { getBankIconAsset, getBankNameKey} from '@components/Icon/BankIconsUtils'; +import {getBankIconAsset, getBankNameKey} from '@components/Icon/BankIconsUtils'; import variables from '@styles/variables'; import CONST from '@src/CONST'; import type {BankIcon} from '@src/types/onyx/Bank'; diff --git a/src/components/Icon/BankIcons/index.ts b/src/components/Icon/BankIcons/index.ts index 379fba482613..378a7107aa03 100644 --- a/src/components/Icon/BankIcons/index.ts +++ b/src/components/Icon/BankIcons/index.ts @@ -1,7 +1,7 @@ import GenericBank from '@assets/images/bankicons/generic-bank-account.svg'; import GenericBankCard from '@assets/images/cardicons/generic-bank-card.svg'; import type {BankIconParams} from '@components/Icon/BankIconsUtils'; -import { getBankIconAsset, getBankNameKey} from '@components/Icon/BankIconsUtils'; +import {getBankIconAsset, getBankNameKey} from '@components/Icon/BankIconsUtils'; import variables from '@styles/variables'; import CONST from '@src/CONST'; import type {BankIcon} from '@src/types/onyx/Bank'; diff --git a/src/components/Icon/index.tsx b/src/components/Icon/index.tsx index b4528df660d8..20f3fd4a8acb 100644 --- a/src/components/Icon/index.tsx +++ b/src/components/Icon/index.tsx @@ -1,7 +1,7 @@ import type {ImageContentFit} from 'expo-image'; import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import ImageSVG from '@components/ImageSVG'; import useStyleUtils from '@hooks/useStyleUtils'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/ImageWithSizeCalculation.tsx b/src/components/ImageWithSizeCalculation.tsx index b488fd461f29..b13d863d97e1 100644 --- a/src/components/ImageWithSizeCalculation.tsx +++ b/src/components/ImageWithSizeCalculation.tsx @@ -1,7 +1,7 @@ import delay from 'lodash/delay'; import React, {useEffect, useRef, useState} from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; import Log from '@libs/Log'; import FullscreenLoadingIndicator from './FullscreenLoadingIndicator'; diff --git a/src/components/Indicator.tsx b/src/components/Indicator.tsx index d736000feb00..5bf93eb8a6b3 100644 --- a/src/components/Indicator.tsx +++ b/src/components/Indicator.tsx @@ -1,7 +1,7 @@ import React from 'react'; import {StyleSheet, View} from 'react-native'; import type {OnyxCollection} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import type {OnyxEntry} from 'react-native-onyx/lib/types'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/InlineCodeBlock/WrappedText.tsx b/src/components/InlineCodeBlock/WrappedText.tsx index c8ba754853a9..3c196f2a7492 100644 --- a/src/components/InlineCodeBlock/WrappedText.tsx +++ b/src/components/InlineCodeBlock/WrappedText.tsx @@ -1,6 +1,6 @@ import React, {Fragment} from 'react'; import type {StyleProp, TextStyle, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import Text from '@components/Text'; import useThemeStyles from '@hooks/useThemeStyles'; import CONST from '@src/CONST'; diff --git a/src/components/InvertedFlatList/BaseInvertedFlatList.tsx b/src/components/InvertedFlatList/BaseInvertedFlatList.tsx index f89daa8a7710..9e3991828625 100644 --- a/src/components/InvertedFlatList/BaseInvertedFlatList.tsx +++ b/src/components/InvertedFlatList/BaseInvertedFlatList.tsx @@ -1,5 +1,5 @@ import type {ForwardedRef} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import type {FlatListProps} from 'react-native'; import FlatList from '@components/FlatList'; diff --git a/src/components/InvertedFlatList/CellRendererComponent.tsx b/src/components/InvertedFlatList/CellRendererComponent.tsx index f7455b0ef9c2..b95fbf42cbb4 100644 --- a/src/components/InvertedFlatList/CellRendererComponent.tsx +++ b/src/components/InvertedFlatList/CellRendererComponent.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {StyleProp, ViewProps} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; type CellRendererComponentProps = ViewProps & { index: number; diff --git a/src/components/InvertedFlatList/index.native.tsx b/src/components/InvertedFlatList/index.native.tsx index dd47e78fe756..76c4b774d0cc 100644 --- a/src/components/InvertedFlatList/index.native.tsx +++ b/src/components/InvertedFlatList/index.native.tsx @@ -1,5 +1,5 @@ import type {ForwardedRef} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import type {FlatList, FlatListProps} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; import BaseInvertedFlatList from './BaseInvertedFlatList'; diff --git a/src/components/InvertedFlatList/index.tsx b/src/components/InvertedFlatList/index.tsx index fc141d2af906..0fc35957e687 100644 --- a/src/components/InvertedFlatList/index.tsx +++ b/src/components/InvertedFlatList/index.tsx @@ -1,6 +1,6 @@ import type {ForwardedRef} from 'react'; -import React, { forwardRef, useEffect, useRef} from 'react'; -import type { FlatList, FlatListProps, NativeScrollEvent, NativeSyntheticEvent} from 'react-native'; +import React, {forwardRef, useEffect, useRef} from 'react'; +import type {FlatList, FlatListProps, NativeScrollEvent, NativeSyntheticEvent} from 'react-native'; import {DeviceEventEmitter} from 'react-native'; import CONST from '@src/CONST'; import BaseInvertedFlatList from './BaseInvertedFlatList'; diff --git a/src/components/LocaleContextProvider.tsx b/src/components/LocaleContextProvider.tsx index 4cf7551ab249..7313bb4aa7bb 100644 --- a/src/components/LocaleContextProvider.tsx +++ b/src/components/LocaleContextProvider.tsx @@ -1,6 +1,6 @@ import React, {createContext, useMemo} from 'react'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import type {ValueOf} from 'type-fest'; import compose from '@libs/compose'; import DateUtils from '@libs/DateUtils'; diff --git a/src/components/LocalePicker.tsx b/src/components/LocalePicker.tsx index 20a86d41aa55..3a2d9a0fd7b9 100644 --- a/src/components/LocalePicker.tsx +++ b/src/components/LocalePicker.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import useLocalize from '@hooks/useLocalize'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/Lottie/index.tsx b/src/components/Lottie/index.tsx index 8f29cd953460..5c672cf7cab6 100644 --- a/src/components/Lottie/index.tsx +++ b/src/components/Lottie/index.tsx @@ -1,7 +1,7 @@ import type {LottieViewProps} from 'lottie-react-native'; import LottieView from 'lottie-react-native'; import type {ForwardedRef} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import {View} from 'react-native'; import type DotLottieAnimation from '@components/LottieAnimations/types'; import useNetwork from '@hooks/useNetwork'; diff --git a/src/components/MapView/MapView.tsx b/src/components/MapView/MapView.tsx index 35e0ccca2124..6321b461f21e 100644 --- a/src/components/MapView/MapView.tsx +++ b/src/components/MapView/MapView.tsx @@ -1,6 +1,6 @@ import {useFocusEffect, useNavigation} from '@react-navigation/native'; import type {MapState} from '@rnmapbox/maps'; -import Mapbox, { MarkerView, setAccessToken} from '@rnmapbox/maps'; +import Mapbox, {MarkerView, setAccessToken} from '@rnmapbox/maps'; import {forwardRef, memo, useCallback, useEffect, useImperativeHandle, useRef, useState} from 'react'; import {View} from 'react-native'; import {withOnyx} from 'react-native-onyx'; diff --git a/src/components/MapView/MapView.website.tsx b/src/components/MapView/MapView.website.tsx index 13bea67ab012..05d86e8ec999 100644 --- a/src/components/MapView/MapView.website.tsx +++ b/src/components/MapView/MapView.website.tsx @@ -7,7 +7,7 @@ import mapboxgl from 'mapbox-gl'; import 'mapbox-gl/dist/mapbox-gl.css'; import React, {forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState} from 'react'; import type {MapRef} from 'react-map-gl'; -import Map, { Marker} from 'react-map-gl'; +import Map, {Marker} from 'react-map-gl'; import {View} from 'react-native'; import {withOnyx} from 'react-native-onyx'; import useStyleUtils from '@hooks/useStyleUtils'; diff --git a/src/components/MenuItem.tsx b/src/components/MenuItem.tsx index ff9dba0d96c1..14dfd0e8dbc4 100644 --- a/src/components/MenuItem.tsx +++ b/src/components/MenuItem.tsx @@ -1,9 +1,9 @@ import ExpensiMark from 'expensify-common/lib/ExpensiMark'; import type {ImageContentFit} from 'expo-image'; import type {ForwardedRef, ReactNode} from 'react'; -import React, { forwardRef, useEffect, useMemo, useRef, useState} from 'react'; +import React, {forwardRef, useEffect, useMemo, useRef, useState} from 'react'; import type {GestureResponderEvent, StyleProp, TextStyle, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import type {AnimatedStyle} from 'react-native-reanimated'; import type {ValueOf} from 'type-fest'; import useStyleUtils from '@hooks/useStyleUtils'; diff --git a/src/components/MenuItemWithTopDescription.tsx b/src/components/MenuItemWithTopDescription.tsx index 8e4db73848b5..0a48740de62e 100644 --- a/src/components/MenuItemWithTopDescription.tsx +++ b/src/components/MenuItemWithTopDescription.tsx @@ -1,5 +1,5 @@ import type {ForwardedRef} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import type {View} from 'react-native'; import MenuItem from './MenuItem'; import type {MenuItemProps} from './MenuItem'; diff --git a/src/components/MessagesRow.tsx b/src/components/MessagesRow.tsx index 45d35f36ed92..cfec6fd292e9 100644 --- a/src/components/MessagesRow.tsx +++ b/src/components/MessagesRow.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useLocalize from '@hooks/useLocalize'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/MultipleAvatars.tsx b/src/components/MultipleAvatars.tsx index 38ced7551a74..3b4a074a2c44 100644 --- a/src/components/MultipleAvatars.tsx +++ b/src/components/MultipleAvatars.tsx @@ -1,6 +1,6 @@ import React, {memo, useMemo} from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import type {ValueOf} from 'type-fest'; import useStyleUtils from '@hooks/useStyleUtils'; import useTheme from '@hooks/useTheme'; diff --git a/src/components/OfflineIndicator.tsx b/src/components/OfflineIndicator.tsx index 8bc7ba69fd36..1a61b6622783 100644 --- a/src/components/OfflineIndicator.tsx +++ b/src/components/OfflineIndicator.tsx @@ -1,6 +1,6 @@ import React, {useMemo} from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useLocalize from '@hooks/useLocalize'; import useNetwork from '@hooks/useNetwork'; import useTheme from '@hooks/useTheme'; diff --git a/src/components/OfflineWithFeedback.tsx b/src/components/OfflineWithFeedback.tsx index 1d715da78b69..fa0ae5162346 100644 --- a/src/components/OfflineWithFeedback.tsx +++ b/src/components/OfflineWithFeedback.tsx @@ -1,6 +1,6 @@ import React, {useCallback} from 'react'; import type {ImageStyle, StyleProp, TextStyle, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useNetwork from '@hooks/useNetwork'; import useStyleUtils from '@hooks/useStyleUtils'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/OpacityView.tsx b/src/components/OpacityView.tsx index 1de09aad6b22..41ab148bd7f2 100644 --- a/src/components/OpacityView.tsx +++ b/src/components/OpacityView.tsx @@ -1,7 +1,7 @@ import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; import type {AnimatedStyle} from 'react-native-reanimated'; -import Animated, { useAnimatedStyle, useSharedValue, withTiming} from 'react-native-reanimated'; +import Animated, {useAnimatedStyle, useSharedValue, withTiming} from 'react-native-reanimated'; import shouldRenderOffscreen from '@libs/shouldRenderOffscreen'; import variables from '@styles/variables'; diff --git a/src/components/OptionRow.tsx b/src/components/OptionRow.tsx index 994d297bc97c..79b72b378e46 100644 --- a/src/components/OptionRow.tsx +++ b/src/components/OptionRow.tsx @@ -1,6 +1,6 @@ import lodashIsEqual from 'lodash/isEqual'; import React, {useEffect, useRef, useState} from 'react'; -import type { StyleProp, TextStyle, ViewStyle} from 'react-native'; +import type {StyleProp, TextStyle, ViewStyle} from 'react-native'; import {InteractionManager, StyleSheet, View} from 'react-native'; import useLocalize from '@hooks/useLocalize'; import useStyleUtils from '@hooks/useStyleUtils'; diff --git a/src/components/Picker/BasePicker.tsx b/src/components/Picker/BasePicker.tsx index 2a45d99c4996..678bb6f06403 100644 --- a/src/components/Picker/BasePicker.tsx +++ b/src/components/Picker/BasePicker.tsx @@ -1,8 +1,8 @@ import lodashDefer from 'lodash/defer'; import type {ForwardedRef, ReactElement, ReactNode, RefObject} from 'react'; -import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState} from 'react'; +import React, {forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState} from 'react'; import type {ScrollView} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import RNPickerSelect from 'react-native-picker-select'; import FormHelpMessage from '@components/FormHelpMessage'; import Icon from '@components/Icon'; diff --git a/src/components/Picker/index.native.tsx b/src/components/Picker/index.native.tsx index aaf7efed89d3..67968096f9f6 100644 --- a/src/components/Picker/index.native.tsx +++ b/src/components/Picker/index.native.tsx @@ -1,5 +1,5 @@ import type {ForwardedRef} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import BasePicker from './BasePicker'; import type {BasePickerHandle, BasePickerProps} from './types'; diff --git a/src/components/Picker/index.tsx b/src/components/Picker/index.tsx index 6dab7d01418d..591914b74d4c 100644 --- a/src/components/Picker/index.tsx +++ b/src/components/Picker/index.tsx @@ -1,5 +1,5 @@ import type {ForwardedRef} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import BasePicker from './BasePicker'; import type {AdditionalPickerEvents, BasePickerHandle, BasePickerProps, OnChange, OnMouseDown} from './types'; diff --git a/src/components/PlaidLink/index.native.tsx b/src/components/PlaidLink/index.native.tsx index 6b0f7845bb99..24ab75eb62b7 100644 --- a/src/components/PlaidLink/index.native.tsx +++ b/src/components/PlaidLink/index.native.tsx @@ -1,5 +1,5 @@ import {useEffect} from 'react'; -import type { LinkEvent} from 'react-native-plaid-link-sdk'; +import type {LinkEvent} from 'react-native-plaid-link-sdk'; import {dismissLink, openLink, usePlaidEmitter} from 'react-native-plaid-link-sdk'; import Log from '@libs/Log'; import CONST from '@src/CONST'; diff --git a/src/components/PlaidLink/index.tsx b/src/components/PlaidLink/index.tsx index 4e26d0c1ccaa..c3a913886f2c 100644 --- a/src/components/PlaidLink/index.tsx +++ b/src/components/PlaidLink/index.tsx @@ -1,7 +1,7 @@ import React, {useCallback, useEffect, useState} from 'react'; import {ActivityIndicator, View} from 'react-native'; import type {PlaidLinkOnSuccessMetadata} from 'react-plaid-link'; -import { usePlaidLink} from 'react-plaid-link'; +import {usePlaidLink} from 'react-plaid-link'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import Log from '@libs/Log'; diff --git a/src/components/PopoverMenu.tsx b/src/components/PopoverMenu.tsx index 57865a4bd037..502bdbf83b53 100644 --- a/src/components/PopoverMenu.tsx +++ b/src/components/PopoverMenu.tsx @@ -1,6 +1,6 @@ import type {ImageContentFit} from 'expo-image'; import type {RefObject} from 'react'; -import React, { useRef} from 'react'; +import React, {useRef} from 'react'; import {View} from 'react-native'; import type {ModalProps} from 'react-native-modal'; import type {SvgProps} from 'react-native-svg'; diff --git a/src/components/PopoverWithMeasuredContent.tsx b/src/components/PopoverWithMeasuredContent.tsx index dd83b3f196d3..b636f90cd7ca 100644 --- a/src/components/PopoverWithMeasuredContent.tsx +++ b/src/components/PopoverWithMeasuredContent.tsx @@ -1,7 +1,7 @@ import isEqual from 'lodash/isEqual'; import React, {useMemo, useState} from 'react'; import type {LayoutChangeEvent} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; import useWindowDimensions from '@hooks/useWindowDimensions'; import PopoverWithMeasuredContentUtils from '@libs/PopoverWithMeasuredContentUtils'; diff --git a/src/components/PopoverWithoutOverlay/index.tsx b/src/components/PopoverWithoutOverlay/index.tsx index 0479161c4ac4..6aed275bd2dc 100644 --- a/src/components/PopoverWithoutOverlay/index.tsx +++ b/src/components/PopoverWithoutOverlay/index.tsx @@ -1,5 +1,5 @@ import type {ForwardedRef} from 'react'; -import React, { forwardRef, useContext, useEffect, useMemo} from 'react'; +import React, {forwardRef, useContext, useEffect, useMemo} from 'react'; import {View} from 'react-native'; import ColorSchemeWrapper from '@components/ColorSchemeWrapper'; import {PopoverContext} from '@components/PopoverProvider'; diff --git a/src/components/PressableWithSecondaryInteraction/index.native.tsx b/src/components/PressableWithSecondaryInteraction/index.native.tsx index 94b7e4580a1e..d448e6d6ecc3 100644 --- a/src/components/PressableWithSecondaryInteraction/index.native.tsx +++ b/src/components/PressableWithSecondaryInteraction/index.native.tsx @@ -1,4 +1,4 @@ -import type { ReactNode} from 'react'; +import type {ReactNode} from 'react'; import React, {forwardRef} from 'react'; import type {GestureResponderEvent, TextProps} from 'react-native'; import type {PressableRef} from '@components/Pressable/GenericPressable/types'; diff --git a/src/components/RNTextInput.tsx b/src/components/RNTextInput.tsx index 6b540494a364..f7917a852704 100644 --- a/src/components/RNTextInput.tsx +++ b/src/components/RNTextInput.tsx @@ -1,7 +1,7 @@ import type {Component, ForwardedRef} from 'react'; import React from 'react'; // eslint-disable-next-line no-restricted-imports -import type { TextInputProps} from 'react-native'; +import type {TextInputProps} from 'react-native'; import {TextInput} from 'react-native'; import type {AnimatedProps} from 'react-native-reanimated'; import Animated from 'react-native-reanimated'; diff --git a/src/components/RadioButtonWithLabel.tsx b/src/components/RadioButtonWithLabel.tsx index 7368101a704a..f4bad4c082a7 100644 --- a/src/components/RadioButtonWithLabel.tsx +++ b/src/components/RadioButtonWithLabel.tsx @@ -1,7 +1,7 @@ import type {ComponentType} from 'react'; import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; import FormHelpMessage from './FormHelpMessage'; import * as Pressables from './Pressable'; diff --git a/src/components/ReportActionItem/MoneyReportView.tsx b/src/components/ReportActionItem/MoneyReportView.tsx index 85d408bef0d3..16ea27b17f42 100644 --- a/src/components/ReportActionItem/MoneyReportView.tsx +++ b/src/components/ReportActionItem/MoneyReportView.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {StyleProp, TextStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import Icon from '@components/Icon'; import * as Expensicons from '@components/Icon/Expensicons'; import SpacerView from '@components/SpacerView'; diff --git a/src/components/ReportWelcomeText.tsx b/src/components/ReportWelcomeText.tsx index e2b1460a51f5..248f6894ca37 100644 --- a/src/components/ReportWelcomeText.tsx +++ b/src/components/ReportWelcomeText.tsx @@ -1,7 +1,7 @@ import React from 'react'; import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; import Navigation from '@libs/Navigation/Navigation'; diff --git a/src/components/ScrollViewWithContext.tsx b/src/components/ScrollViewWithContext.tsx index 2c1eb2bd1fbb..478a0555e89e 100644 --- a/src/components/ScrollViewWithContext.tsx +++ b/src/components/ScrollViewWithContext.tsx @@ -1,7 +1,7 @@ import type {ForwardedRef} from 'react'; -import React, { useMemo, useRef, useState} from 'react'; +import React, {useMemo, useRef, useState} from 'react'; import type {NativeScrollEvent, NativeSyntheticEvent} from 'react-native'; -import { ScrollView} from 'react-native'; +import {ScrollView} from 'react-native'; const MIN_SMOOTH_SCROLL_EVENT_THROTTLE = 16; diff --git a/src/components/Search.tsx b/src/components/Search.tsx index 87875d956589..0b02c5dc5b5b 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {GestureResponderEvent, StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; import variables from '@styles/variables'; diff --git a/src/components/SelectCircle.tsx b/src/components/SelectCircle.tsx index f21d8d4cdbf1..f20257bb9611 100644 --- a/src/components/SelectCircle.tsx +++ b/src/components/SelectCircle.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import Icon from './Icon'; diff --git a/src/components/SingleChoiceQuestion.tsx b/src/components/SingleChoiceQuestion.tsx index 9f869ef969c4..4c2ba9c34a9f 100644 --- a/src/components/SingleChoiceQuestion.tsx +++ b/src/components/SingleChoiceQuestion.tsx @@ -1,5 +1,5 @@ import type {ForwardedRef} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import type {Text as RNText} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; import type {MaybePhraseKey} from '@libs/Localize'; diff --git a/src/components/SplashScreenHider/index.native.tsx b/src/components/SplashScreenHider/index.native.tsx index b722f189f1c1..e31f391f7376 100644 --- a/src/components/SplashScreenHider/index.native.tsx +++ b/src/components/SplashScreenHider/index.native.tsx @@ -1,5 +1,5 @@ import {useCallback, useRef} from 'react'; -import type { ViewStyle} from 'react-native'; +import type {ViewStyle} from 'react-native'; import {StyleSheet} from 'react-native'; import Reanimated, {Easing, runOnJS, useAnimatedStyle, useSharedValue, withTiming} from 'react-native-reanimated'; import Logo from '@assets/images/new-expensify-dark.svg'; diff --git a/src/components/TaskHeaderActionButton.tsx b/src/components/TaskHeaderActionButton.tsx index 96f7e040ae0e..24acdf6c5f0b 100644 --- a/src/components/TaskHeaderActionButton.tsx +++ b/src/components/TaskHeaderActionButton.tsx @@ -1,7 +1,7 @@ import React from 'react'; import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; import * as ReportUtils from '@libs/ReportUtils'; diff --git a/src/components/TestToolMenu.tsx b/src/components/TestToolMenu.tsx index 74e099af2820..7c0b3a6e33e1 100644 --- a/src/components/TestToolMenu.tsx +++ b/src/components/TestToolMenu.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import useThemeStyles from '@hooks/useThemeStyles'; import * as ApiUtils from '@libs/ApiUtils'; import compose from '@libs/compose'; diff --git a/src/components/TestToolsModal.tsx b/src/components/TestToolsModal.tsx index 574dd80257f7..2b1ec1e84c5b 100644 --- a/src/components/TestToolsModal.tsx +++ b/src/components/TestToolsModal.tsx @@ -1,7 +1,7 @@ import React from 'react'; import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import useThemeStyles from '@hooks/useThemeStyles'; import toggleTestToolsModal from '@userActions/TestTool'; import CONST from '@src/CONST'; diff --git a/src/components/Text.tsx b/src/components/Text.tsx index bf464aeb7270..f8f8a90168fa 100644 --- a/src/components/Text.tsx +++ b/src/components/Text.tsx @@ -1,7 +1,7 @@ import type {ForwardedRef} from 'react'; import React from 'react'; import {Text as RNText, StyleSheet} from 'react-native'; -import type {TextStyle, TextProps as RNTextProps} from 'react-native'; +import type {TextProps as RNTextProps, TextStyle} from 'react-native'; import useTheme from '@hooks/useTheme'; import fontFamily from '@styles/utils/fontFamily'; import variables from '@styles/variables'; diff --git a/src/components/TextInput/BaseTextInput/index.native.tsx b/src/components/TextInput/BaseTextInput/index.native.tsx index 7a5fc3a62838..f4cc1ee9e0ba 100644 --- a/src/components/TextInput/BaseTextInput/index.native.tsx +++ b/src/components/TextInput/BaseTextInput/index.native.tsx @@ -1,7 +1,7 @@ import Str from 'expensify-common/lib/str'; import React, {forwardRef, useCallback, useEffect, useRef, useState} from 'react'; import {ActivityIndicator, Animated, StyleSheet, View} from 'react-native'; -import type {GestureResponderEvent, LayoutChangeEvent, NativeSyntheticEvent, StyleProp, TextInputFocusEventData, ViewStyle, TextInput} from 'react-native'; +import type {GestureResponderEvent, LayoutChangeEvent, NativeSyntheticEvent, StyleProp, TextInput, TextInputFocusEventData, ViewStyle} from 'react-native'; import Checkbox from '@components/Checkbox'; import FormHelpMessage from '@components/FormHelpMessage'; import Icon from '@components/Icon'; diff --git a/src/components/TextInput/BaseTextInput/index.tsx b/src/components/TextInput/BaseTextInput/index.tsx index 89711cd0859f..d548041b0cf8 100644 --- a/src/components/TextInput/BaseTextInput/index.tsx +++ b/src/components/TextInput/BaseTextInput/index.tsx @@ -1,7 +1,7 @@ import Str from 'expensify-common/lib/str'; import React, {forwardRef, useCallback, useEffect, useMemo, useRef, useState} from 'react'; import {ActivityIndicator, Animated, StyleSheet, View} from 'react-native'; -import type {GestureResponderEvent, LayoutChangeEvent, NativeSyntheticEvent, StyleProp, TextInputFocusEventData, ViewStyle, TextInput} from 'react-native'; +import type {GestureResponderEvent, LayoutChangeEvent, NativeSyntheticEvent, StyleProp, TextInput, TextInputFocusEventData, ViewStyle} from 'react-native'; import Checkbox from '@components/Checkbox'; import FormHelpMessage from '@components/FormHelpMessage'; import Icon from '@components/Icon'; diff --git a/src/components/TextInput/TextInputLabel/index.tsx b/src/components/TextInput/TextInputLabel/index.tsx index 7f1263ac273d..507d40f475a7 100644 --- a/src/components/TextInput/TextInputLabel/index.tsx +++ b/src/components/TextInput/TextInputLabel/index.tsx @@ -1,5 +1,5 @@ import React, {useEffect, useRef} from 'react'; -import type { Text} from 'react-native'; +import type {Text} from 'react-native'; import {Animated} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; import CONST from '@src/CONST'; diff --git a/src/components/TextLink.tsx b/src/components/TextLink.tsx index 435f56484de7..d3c515115d56 100644 --- a/src/components/TextLink.tsx +++ b/src/components/TextLink.tsx @@ -1,5 +1,5 @@ import type {ForwardedRef, KeyboardEventHandler, MouseEventHandler} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import type {GestureResponderEvent, Text as RNText, StyleProp, TextStyle} from 'react-native'; import useEnvironment from '@hooks/useEnvironment'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/TextWithEllipsis/index.tsx b/src/components/TextWithEllipsis/index.tsx index f4fdc5b5a431..1efbece7d49e 100644 --- a/src/components/TextWithEllipsis/index.tsx +++ b/src/components/TextWithEllipsis/index.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {StyleProp, TextStyle, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import Text from '@components/Text'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/ThumbnailImage.tsx b/src/components/ThumbnailImage.tsx index d40f840bc141..3c903ee9e78f 100644 --- a/src/components/ThumbnailImage.tsx +++ b/src/components/ThumbnailImage.tsx @@ -1,6 +1,6 @@ import lodashClamp from 'lodash/clamp'; import React, {useCallback, useState} from 'react'; -import type { StyleProp, ViewStyle} from 'react-native'; +import type {StyleProp, ViewStyle} from 'react-native'; import {Dimensions, View} from 'react-native'; import useStyleUtils from '@hooks/useStyleUtils'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/components/Tooltip/BaseTooltip/index.tsx b/src/components/Tooltip/BaseTooltip/index.tsx index c284016a593f..cf249a936f0b 100644 --- a/src/components/Tooltip/BaseTooltip/index.tsx +++ b/src/components/Tooltip/BaseTooltip/index.tsx @@ -1,6 +1,6 @@ import {BoundsObserver} from '@react-ng/bounds-observer'; import type {ForwardedRef} from 'react'; -import React, { forwardRef, memo, useCallback, useEffect, useRef, useState} from 'react'; +import React, {forwardRef, memo, useCallback, useEffect, useRef, useState} from 'react'; import {Animated} from 'react-native'; import Hoverable from '@components/Hoverable'; import TooltipRenderedOnPageBody from '@components/Tooltip/TooltipRenderedOnPageBody'; diff --git a/src/components/ValidateCode/ValidateCodeModal.tsx b/src/components/ValidateCode/ValidateCodeModal.tsx index 715f07070975..9c83a80b0d24 100644 --- a/src/components/ValidateCode/ValidateCodeModal.tsx +++ b/src/components/ValidateCode/ValidateCodeModal.tsx @@ -1,7 +1,7 @@ import React, {useCallback} from 'react'; import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import Icon from '@components/Icon'; import * as Expensicons from '@components/Icon/Expensicons'; import * as Illustrations from '@components/Icon/Illustrations'; diff --git a/src/components/WalletStatementModal/index.native.tsx b/src/components/WalletStatementModal/index.native.tsx index a287c68504dc..8dbc743a02ee 100644 --- a/src/components/WalletStatementModal/index.native.tsx +++ b/src/components/WalletStatementModal/index.native.tsx @@ -1,6 +1,6 @@ import React, {useCallback, useRef} from 'react'; import {withOnyx} from 'react-native-onyx'; -import type { WebViewNavigation} from 'react-native-webview'; +import type {WebViewNavigation} from 'react-native-webview'; import {WebView} from 'react-native-webview'; import type {ValueOf} from 'type-fest'; import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator'; diff --git a/src/components/createOnyxContext.tsx b/src/components/createOnyxContext.tsx index 99f48ea80d5f..4fb8b9a7281c 100644 --- a/src/components/createOnyxContext.tsx +++ b/src/components/createOnyxContext.tsx @@ -1,6 +1,6 @@ import Str from 'expensify-common/lib/str'; import type {ComponentType, ForwardedRef, ForwardRefExoticComponent, PropsWithoutRef, ReactNode, RefAttributes} from 'react'; -import React, { createContext, forwardRef, useContext} from 'react'; +import React, {createContext, forwardRef, useContext} from 'react'; import {withOnyx} from 'react-native-onyx'; import getComponentDisplayName from '@libs/getComponentDisplayName'; import type {OnyxCollectionKey, OnyxKey, OnyxKeyValue, OnyxValues} from '@src/ONYXKEYS'; diff --git a/src/components/withCurrentReportID.tsx b/src/components/withCurrentReportID.tsx index b1f84db36257..a452e7565b4e 100644 --- a/src/components/withCurrentReportID.tsx +++ b/src/components/withCurrentReportID.tsx @@ -1,7 +1,7 @@ import type {NavigationState} from '@react-navigation/native'; import PropTypes from 'prop-types'; import type {ComponentType, ForwardedRef, RefAttributes} from 'react'; -import React, { createContext, forwardRef, useCallback, useMemo, useState} from 'react'; +import React, {createContext, forwardRef, useCallback, useMemo, useState} from 'react'; import getComponentDisplayName from '@libs/getComponentDisplayName'; import Navigation from '@libs/Navigation/Navigation'; diff --git a/src/components/withCurrentUserPersonalDetails.tsx b/src/components/withCurrentUserPersonalDetails.tsx index d329aa2a5c2d..9406c8634c1b 100644 --- a/src/components/withCurrentUserPersonalDetails.tsx +++ b/src/components/withCurrentUserPersonalDetails.tsx @@ -1,7 +1,7 @@ import type {ComponentType, ForwardedRef, RefAttributes} from 'react'; -import React, { useMemo} from 'react'; +import React, {useMemo} from 'react'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import getComponentDisplayName from '@libs/getComponentDisplayName'; import personalDetailsPropType from '@pages/personalDetailsPropType'; import CONST from '@src/CONST'; diff --git a/src/components/withEnvironment.tsx b/src/components/withEnvironment.tsx index 21854c11b5ce..bd57ed5da696 100644 --- a/src/components/withEnvironment.tsx +++ b/src/components/withEnvironment.tsx @@ -1,5 +1,5 @@ import type {ComponentType, ForwardedRef, ReactElement, ReactNode, RefAttributes} from 'react'; -import React, { createContext, forwardRef, useContext, useEffect, useMemo, useState} from 'react'; +import React, {createContext, forwardRef, useContext, useEffect, useMemo, useState} from 'react'; import type {ValueOf} from 'type-fest'; import * as Environment from '@libs/Environment/Environment'; import getComponentDisplayName from '@libs/getComponentDisplayName'; diff --git a/src/components/withKeyboardState.tsx b/src/components/withKeyboardState.tsx index 958c1fe4f867..2a74fd3e738e 100755 --- a/src/components/withKeyboardState.tsx +++ b/src/components/withKeyboardState.tsx @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import type {ComponentType, ForwardedRef, ReactElement, RefAttributes} from 'react'; -import React, { createContext, forwardRef, useEffect, useMemo, useState} from 'react'; +import React, {createContext, forwardRef, useEffect, useMemo, useState} from 'react'; import {Keyboard} from 'react-native'; import getComponentDisplayName from '@libs/getComponentDisplayName'; import type ChildrenProps from '@src/types/utils/ChildrenProps'; diff --git a/src/components/withLocalize.tsx b/src/components/withLocalize.tsx index c1b756cde08f..f198ed9156e1 100755 --- a/src/components/withLocalize.tsx +++ b/src/components/withLocalize.tsx @@ -1,8 +1,8 @@ import PropTypes from 'prop-types'; import type {ComponentType, ForwardedRef, ReactElement, RefAttributes} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import getComponentDisplayName from '@libs/getComponentDisplayName'; -import type { LocaleContextProps} from './LocaleContextProvider'; +import type {LocaleContextProps} from './LocaleContextProvider'; import {LocaleContext} from './LocaleContextProvider'; const withLocalizePropTypes = { diff --git a/src/components/withNavigation.tsx b/src/components/withNavigation.tsx index aae8c157d75a..1d9b2a5f5cb0 100644 --- a/src/components/withNavigation.tsx +++ b/src/components/withNavigation.tsx @@ -1,5 +1,5 @@ import type {NavigationProp} from '@react-navigation/native'; -import { useNavigation} from '@react-navigation/native'; +import {useNavigation} from '@react-navigation/native'; import type {ComponentType, ForwardedRef, RefAttributes} from 'react'; import React from 'react'; import getComponentDisplayName from '@libs/getComponentDisplayName'; diff --git a/src/components/withNavigationFallback.tsx b/src/components/withNavigationFallback.tsx index 5a8011205a00..5d39f71fcb86 100644 --- a/src/components/withNavigationFallback.tsx +++ b/src/components/withNavigationFallback.tsx @@ -2,7 +2,7 @@ import {NavigationContext} from '@react-navigation/core'; import type {NavigationProp} from '@react-navigation/native'; import type {ParamListBase} from '@react-navigation/routers'; import type {ComponentType, ForwardedRef, ReactElement, RefAttributes} from 'react'; -import React, { forwardRef, useContext, useMemo} from 'react'; +import React, {forwardRef, useContext, useMemo} from 'react'; type AddListenerCallback = () => void; diff --git a/src/components/withStyleUtils.tsx b/src/components/withStyleUtils.tsx index cc45738c5bbf..881aa9cbe4ae 100644 --- a/src/components/withStyleUtils.tsx +++ b/src/components/withStyleUtils.tsx @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import type {ComponentType, ForwardedRef, ReactElement, RefAttributes} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import useStyleUtils from '@hooks/useStyleUtils'; import getComponentDisplayName from '@libs/getComponentDisplayName'; import type {StyleUtilsType} from '@styles/utils'; diff --git a/src/components/withTheme.tsx b/src/components/withTheme.tsx index 75f3e571282c..b9b81d6daac2 100644 --- a/src/components/withTheme.tsx +++ b/src/components/withTheme.tsx @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import type {ComponentType, ForwardedRef, ReactElement, RefAttributes} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import useTheme from '@hooks/useTheme'; import getComponentDisplayName from '@libs/getComponentDisplayName'; import type {ThemeColors} from '@styles/theme/types'; diff --git a/src/components/withThemeStyles.tsx b/src/components/withThemeStyles.tsx index 8b02897eb8d9..be1f26fd966c 100644 --- a/src/components/withThemeStyles.tsx +++ b/src/components/withThemeStyles.tsx @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import type {ComponentType, ForwardedRef, ReactElement, RefAttributes} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import useThemeStyles from '@hooks/useThemeStyles'; import getComponentDisplayName from '@libs/getComponentDisplayName'; import type {ThemeStyles} from '@styles/index'; diff --git a/src/components/withViewportOffsetTop.tsx b/src/components/withViewportOffsetTop.tsx index 424bedb14870..d3e9b63ad3ee 100644 --- a/src/components/withViewportOffsetTop.tsx +++ b/src/components/withViewportOffsetTop.tsx @@ -1,5 +1,5 @@ import type {ComponentType, ForwardedRef, RefAttributes} from 'react'; -import React, { forwardRef, useEffect, useState} from 'react'; +import React, {forwardRef, useEffect, useState} from 'react'; import getComponentDisplayName from '@libs/getComponentDisplayName'; import addViewportResizeListener from '@libs/VisualViewport'; diff --git a/src/components/withWindowDimensions/index.native.tsx b/src/components/withWindowDimensions/index.native.tsx index e1300a5584f5..073c1f22575b 100644 --- a/src/components/withWindowDimensions/index.native.tsx +++ b/src/components/withWindowDimensions/index.native.tsx @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import type {ComponentType, ForwardedRef, RefAttributes} from 'react'; -import React, { createContext, useEffect, useMemo, useState} from 'react'; +import React, {createContext, useEffect, useMemo, useState} from 'react'; import {Dimensions} from 'react-native'; import useSafeAreaInsets from '@hooks/useSafeAreaInsets'; import getComponentDisplayName from '@libs/getComponentDisplayName'; diff --git a/src/components/withWindowDimensions/index.tsx b/src/components/withWindowDimensions/index.tsx index e761881a1788..b2a3a58726bf 100644 --- a/src/components/withWindowDimensions/index.tsx +++ b/src/components/withWindowDimensions/index.tsx @@ -1,7 +1,7 @@ import lodashDebounce from 'lodash/debounce'; import PropTypes from 'prop-types'; import type {ComponentType, ForwardedRef, RefAttributes} from 'react'; -import React, { createContext, useEffect, useMemo, useState} from 'react'; +import React, {createContext, useEffect, useMemo, useState} from 'react'; import {Dimensions} from 'react-native'; import useSafeAreaInsets from '@hooks/useSafeAreaInsets'; import getComponentDisplayName from '@libs/getComponentDisplayName'; diff --git a/src/hooks/useAutoFocusInput.ts b/src/hooks/useAutoFocusInput.ts index 96e60489afc9..20d0dee1f407 100644 --- a/src/hooks/useAutoFocusInput.ts +++ b/src/hooks/useAutoFocusInput.ts @@ -1,6 +1,6 @@ import {useFocusEffect} from '@react-navigation/native'; import {useCallback, useContext, useEffect, useRef, useState} from 'react'; -import type { TextInput} from 'react-native'; +import type {TextInput} from 'react-native'; import {InteractionManager} from 'react-native'; import CONST from '@src/CONST'; import * as Expensify from '@src/Expensify'; diff --git a/src/hooks/useCurrentReportID.tsx b/src/hooks/useCurrentReportID.tsx index 11ad4caabb88..d2934cd65b62 100644 --- a/src/hooks/useCurrentReportID.tsx +++ b/src/hooks/useCurrentReportID.tsx @@ -1,5 +1,5 @@ import {useContext} from 'react'; -import type { CurrentReportIDContextValue} from '@components/withCurrentReportID'; +import type {CurrentReportIDContextValue} from '@components/withCurrentReportID'; import {CurrentReportIDContext} from '@components/withCurrentReportID'; export default function useCurrentReportID(): CurrentReportIDContextValue | null { diff --git a/src/hooks/useDelayedInputFocus.ts b/src/hooks/useDelayedInputFocus.ts index 4942de265340..41132ae3f656 100644 --- a/src/hooks/useDelayedInputFocus.ts +++ b/src/hooks/useDelayedInputFocus.ts @@ -1,6 +1,6 @@ import {useFocusEffect} from '@react-navigation/native'; import type {MutableRefObject} from 'react'; -import { useCallback, useRef} from 'react'; +import {useCallback, useRef} from 'react'; import type {TextInput} from 'react-native'; import CONST from '@src/CONST'; diff --git a/src/hooks/useInitialWindowDimensions/index.ts b/src/hooks/useInitialWindowDimensions/index.ts index f86829f8ac81..6dbb116e2e88 100644 --- a/src/hooks/useInitialWindowDimensions/index.ts +++ b/src/hooks/useInitialWindowDimensions/index.ts @@ -1,6 +1,6 @@ // eslint-disable-next-line no-restricted-imports import {useEffect, useState} from 'react'; -import {Dimensions } from 'react-native'; +import {Dimensions} from 'react-native'; import type {ScaledSize} from 'react-native'; type InitialWindowDimensions = { diff --git a/src/hooks/useKeyboardState.ts b/src/hooks/useKeyboardState.ts index 6c312d448af8..439f626ddcdd 100644 --- a/src/hooks/useKeyboardState.ts +++ b/src/hooks/useKeyboardState.ts @@ -1,5 +1,5 @@ import {useContext} from 'react'; -import type { KeyboardStateContextValue} from '@components/withKeyboardState'; +import type {KeyboardStateContextValue} from '@components/withKeyboardState'; import {KeyboardStateContext} from '@components/withKeyboardState'; /** diff --git a/src/hooks/useLocalize.ts b/src/hooks/useLocalize.ts index dd68b9e8df05..6259187e433f 100644 --- a/src/hooks/useLocalize.ts +++ b/src/hooks/useLocalize.ts @@ -1,5 +1,5 @@ import {useContext} from 'react'; -import type { LocaleContextProps} from '@components/LocaleContextProvider'; +import type {LocaleContextProps} from '@components/LocaleContextProvider'; import {LocaleContext} from '@components/LocaleContextProvider'; export default function useLocalize(): LocaleContextProps { diff --git a/src/hooks/useResponsiveLayout.ts b/src/hooks/useResponsiveLayout.ts index 55b3bd0b4af9..dd782a9dbba5 100644 --- a/src/hooks/useResponsiveLayout.ts +++ b/src/hooks/useResponsiveLayout.ts @@ -1,5 +1,5 @@ import type {ParamListBase, RouteProp} from '@react-navigation/native'; -import { useRoute} from '@react-navigation/native'; +import {useRoute} from '@react-navigation/native'; import useWindowDimensions from './useWindowDimensions'; type RouteParams = ParamListBase & { diff --git a/src/hooks/useScrollContext.ts b/src/hooks/useScrollContext.ts index bdaaf298c1e2..3adb91fe2abf 100644 --- a/src/hooks/useScrollContext.ts +++ b/src/hooks/useScrollContext.ts @@ -1,5 +1,5 @@ import {useContext} from 'react'; -import type { ScrollContextValue} from '@components/ScrollViewWithContext'; +import type {ScrollContextValue} from '@components/ScrollViewWithContext'; import {ScrollContext} from '@components/ScrollViewWithContext'; export default function useScrollContext(): ScrollContextValue { diff --git a/src/libs/Accessibility/index.ts b/src/libs/Accessibility/index.ts index a803e5cc36f7..167634acce56 100644 --- a/src/libs/Accessibility/index.ts +++ b/src/libs/Accessibility/index.ts @@ -1,5 +1,5 @@ import {useCallback, useEffect, useState} from 'react'; -import type { LayoutChangeEvent} from 'react-native'; +import type {LayoutChangeEvent} from 'react-native'; import {AccessibilityInfo} from 'react-native'; import moveAccessibilityFocus from './moveAccessibilityFocus'; diff --git a/src/libs/AppStateMonitor/index.ts b/src/libs/AppStateMonitor/index.ts index cd9deb7797cb..e89d92b35be4 100644 --- a/src/libs/AppStateMonitor/index.ts +++ b/src/libs/AppStateMonitor/index.ts @@ -1,4 +1,4 @@ -import type { AppStateStatus} from 'react-native'; +import type {AppStateStatus} from 'react-native'; import {AppState} from 'react-native'; import CONST from '@src/CONST'; import shouldReportActivity from './shouldReportActivity'; diff --git a/src/libs/Navigation/AppNavigator/AuthScreens.tsx b/src/libs/Navigation/AppNavigator/AuthScreens.tsx index 3751b9ebd29f..58825ae6f2b1 100644 --- a/src/libs/Navigation/AppNavigator/AuthScreens.tsx +++ b/src/libs/Navigation/AppNavigator/AuthScreens.tsx @@ -1,7 +1,7 @@ import React, {memo, useEffect, useRef} from 'react'; import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; -import Onyx, { withOnyx} from 'react-native-onyx'; +import Onyx, {withOnyx} from 'react-native-onyx'; import useThemeStyles from '@hooks/useThemeStyles'; import useWindowDimensions from '@hooks/useWindowDimensions'; import KeyboardShortcut from '@libs/KeyboardShortcut'; diff --git a/src/libs/Navigation/AppNavigator/ModalNavigatorScreenOptions.ts b/src/libs/Navigation/AppNavigator/ModalNavigatorScreenOptions.ts index 4d6ef3c6df4a..e49a94bf4ed7 100644 --- a/src/libs/Navigation/AppNavigator/ModalNavigatorScreenOptions.ts +++ b/src/libs/Navigation/AppNavigator/ModalNavigatorScreenOptions.ts @@ -1,4 +1,4 @@ -import type { StackNavigationOptions} from '@react-navigation/stack'; +import type {StackNavigationOptions} from '@react-navigation/stack'; import {CardStyleInterpolators} from '@react-navigation/stack'; import type {ThemeStyles} from '@styles/index'; diff --git a/src/libs/Navigation/AppNavigator/ModalStackNavigators.tsx b/src/libs/Navigation/AppNavigator/ModalStackNavigators.tsx index ad8c717f63a1..e177f1c2003d 100644 --- a/src/libs/Navigation/AppNavigator/ModalStackNavigators.tsx +++ b/src/libs/Navigation/AppNavigator/ModalStackNavigators.tsx @@ -1,5 +1,5 @@ import type {ParamListBase} from '@react-navigation/routers'; -import type { StackNavigationOptions} from '@react-navigation/stack'; +import type {StackNavigationOptions} from '@react-navigation/stack'; import {CardStyleInterpolators, createStackNavigator} from '@react-navigation/stack'; import React, {useMemo} from 'react'; import useThemeStyles from '@hooks/useThemeStyles'; diff --git a/src/libs/Navigation/AppNavigator/Navigators/LeftModalNavigator.tsx b/src/libs/Navigation/AppNavigator/Navigators/LeftModalNavigator.tsx index 8f5e811ef674..4e78231b6b6e 100644 --- a/src/libs/Navigation/AppNavigator/Navigators/LeftModalNavigator.tsx +++ b/src/libs/Navigation/AppNavigator/Navigators/LeftModalNavigator.tsx @@ -1,4 +1,4 @@ -import type { StackScreenProps} from '@react-navigation/stack'; +import type {StackScreenProps} from '@react-navigation/stack'; import {createStackNavigator} from '@react-navigation/stack'; import React, {useMemo} from 'react'; import {View} from 'react-native'; diff --git a/src/libs/Navigation/AppNavigator/Navigators/RightModalNavigator.tsx b/src/libs/Navigation/AppNavigator/Navigators/RightModalNavigator.tsx index d7a4fc121495..ca33b32113bb 100644 --- a/src/libs/Navigation/AppNavigator/Navigators/RightModalNavigator.tsx +++ b/src/libs/Navigation/AppNavigator/Navigators/RightModalNavigator.tsx @@ -1,4 +1,4 @@ -import type { StackScreenProps} from '@react-navigation/stack'; +import type {StackScreenProps} from '@react-navigation/stack'; import {createStackNavigator} from '@react-navigation/stack'; import React, {useMemo} from 'react'; import {View} from 'react-native'; diff --git a/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts b/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts index 49002ce592bd..e6e9a7746585 100644 --- a/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts +++ b/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts @@ -1,6 +1,6 @@ import {useEffect} from 'react'; import type {OnyxCollection, OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import usePermissions from '@hooks/usePermissions'; import * as ReportUtils from '@libs/ReportUtils'; import * as App from '@userActions/App'; diff --git a/src/libs/Navigation/AppNavigator/createCustomStackNavigator/CustomRouter.ts b/src/libs/Navigation/AppNavigator/createCustomStackNavigator/CustomRouter.ts index 526541b40f54..10cee2c85952 100644 --- a/src/libs/Navigation/AppNavigator/createCustomStackNavigator/CustomRouter.ts +++ b/src/libs/Navigation/AppNavigator/createCustomStackNavigator/CustomRouter.ts @@ -1,5 +1,5 @@ import type {NavigationState, PartialState, RouterConfigOptions, StackNavigationState} from '@react-navigation/native'; -import { StackRouter} from '@react-navigation/native'; +import {StackRouter} from '@react-navigation/native'; import type {ParamListBase} from '@react-navigation/routers'; import getIsSmallScreenWidth from '@libs/getIsSmallScreenWidth'; import NAVIGATORS from '@src/NAVIGATORS'; diff --git a/src/libs/Navigation/AppNavigator/createCustomStackNavigator/index.native.tsx b/src/libs/Navigation/AppNavigator/createCustomStackNavigator/index.native.tsx index d8e57c1aabf1..151dd0a0f893 100644 --- a/src/libs/Navigation/AppNavigator/createCustomStackNavigator/index.native.tsx +++ b/src/libs/Navigation/AppNavigator/createCustomStackNavigator/index.native.tsx @@ -1,7 +1,7 @@ -import type { ParamListBase, StackActionHelpers, StackNavigationState} from '@react-navigation/native'; +import type {ParamListBase, StackActionHelpers, StackNavigationState} from '@react-navigation/native'; import {createNavigatorFactory, useNavigationBuilder} from '@react-navigation/native'; import type {StackNavigationEventMap, StackNavigationOptions} from '@react-navigation/stack'; -import { StackView} from '@react-navigation/stack'; +import {StackView} from '@react-navigation/stack'; import React, {useRef} from 'react'; import useWindowDimensions from '@hooks/useWindowDimensions'; import CustomRouter from './CustomRouter'; diff --git a/src/libs/Navigation/AppNavigator/createCustomStackNavigator/index.tsx b/src/libs/Navigation/AppNavigator/createCustomStackNavigator/index.tsx index 02fe493b78f1..3f6025d5ff0c 100644 --- a/src/libs/Navigation/AppNavigator/createCustomStackNavigator/index.tsx +++ b/src/libs/Navigation/AppNavigator/createCustomStackNavigator/index.tsx @@ -1,7 +1,7 @@ -import type { ParamListBase, StackActionHelpers, StackNavigationState} from '@react-navigation/native'; +import type {ParamListBase, StackActionHelpers, StackNavigationState} from '@react-navigation/native'; import {createNavigatorFactory, useNavigationBuilder} from '@react-navigation/native'; import type {StackNavigationEventMap, StackNavigationOptions} from '@react-navigation/stack'; -import { StackView} from '@react-navigation/stack'; +import {StackView} from '@react-navigation/stack'; import React, {useMemo, useRef} from 'react'; import useWindowDimensions from '@hooks/useWindowDimensions'; import NAVIGATORS from '@src/NAVIGATORS'; diff --git a/src/libs/Navigation/Navigation.ts b/src/libs/Navigation/Navigation.ts index 509e4cd93d85..cc77cd1c4908 100644 --- a/src/libs/Navigation/Navigation.ts +++ b/src/libs/Navigation/Navigation.ts @@ -1,5 +1,5 @@ import {findFocusedRoute} from '@react-navigation/core'; -import type { EventArg, NavigationContainerEventMap, NavigationState, PartialState} from '@react-navigation/native'; +import type {EventArg, NavigationContainerEventMap, NavigationState, PartialState} from '@react-navigation/native'; import {CommonActions, getPathFromState, StackActions} from '@react-navigation/native'; import Log from '@libs/Log'; import CONST from '@src/CONST'; diff --git a/src/libs/Navigation/NavigationRoot.tsx b/src/libs/Navigation/NavigationRoot.tsx index a2abe02d3102..79ec18d28d4f 100644 --- a/src/libs/Navigation/NavigationRoot.tsx +++ b/src/libs/Navigation/NavigationRoot.tsx @@ -1,4 +1,4 @@ -import type { NavigationState} from '@react-navigation/native'; +import type {NavigationState} from '@react-navigation/native'; import {DefaultTheme, getPathFromState, NavigationContainer} from '@react-navigation/native'; import React, {useEffect, useMemo, useRef} from 'react'; import useCurrentReportID from '@hooks/useCurrentReportID'; diff --git a/src/libs/Navigation/OnyxTabNavigator.tsx b/src/libs/Navigation/OnyxTabNavigator.tsx index c7bfc7396295..624aaec72bda 100644 --- a/src/libs/Navigation/OnyxTabNavigator.tsx +++ b/src/libs/Navigation/OnyxTabNavigator.tsx @@ -1,4 +1,4 @@ -import type { MaterialTopTabNavigationEventMap} from '@react-navigation/material-top-tabs'; +import type {MaterialTopTabNavigationEventMap} from '@react-navigation/material-top-tabs'; import {createMaterialTopTabNavigator} from '@react-navigation/material-top-tabs'; import type {EventMapCore, NavigationState, ScreenListeners} from '@react-navigation/native'; import React from 'react'; diff --git a/src/libs/Navigation/dismissModal.ts b/src/libs/Navigation/dismissModal.ts index c262def49738..917f1c86c90c 100644 --- a/src/libs/Navigation/dismissModal.ts +++ b/src/libs/Navigation/dismissModal.ts @@ -1,6 +1,6 @@ import {getActionFromState} from '@react-navigation/core'; import type {NavigationContainerRef} from '@react-navigation/native'; -import { StackActions} from '@react-navigation/native'; +import {StackActions} from '@react-navigation/native'; import {findLastIndex} from 'lodash'; import Log from '@libs/Log'; import NAVIGATORS from '@src/NAVIGATORS'; diff --git a/src/libs/Navigation/getStateFromPath.ts b/src/libs/Navigation/getStateFromPath.ts index f0c272a678e3..0476ffac1494 100644 --- a/src/libs/Navigation/getStateFromPath.ts +++ b/src/libs/Navigation/getStateFromPath.ts @@ -1,5 +1,5 @@ import type {NavigationState, PartialState} from '@react-navigation/native'; -import { getStateFromPath as RNGetStateFromPath} from '@react-navigation/native'; +import {getStateFromPath as RNGetStateFromPath} from '@react-navigation/native'; import type {Route} from '@src/ROUTES'; import linkingConfig from './linkingConfig'; diff --git a/src/libs/Notification/PushNotification/index.native.ts b/src/libs/Notification/PushNotification/index.native.ts index b172c4d4f7ac..382591e5b698 100644 --- a/src/libs/Notification/PushNotification/index.native.ts +++ b/src/libs/Notification/PushNotification/index.native.ts @@ -1,4 +1,4 @@ -import type { PushPayload} from '@ua/react-native-airship'; +import type {PushPayload} from '@ua/react-native-airship'; import Airship, {EventType} from '@ua/react-native-airship'; import Onyx from 'react-native-onyx'; import Log from '@libs/Log'; diff --git a/src/libs/PolicyUtils.ts b/src/libs/PolicyUtils.ts index 57e3dcb94cb5..0cab97299324 100644 --- a/src/libs/PolicyUtils.ts +++ b/src/libs/PolicyUtils.ts @@ -4,7 +4,7 @@ import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import type {PersonalDetailsList, Policy, PolicyMembers, PolicyTag, PolicyTags} from '@src/types/onyx'; import type {EmptyObject} from '@src/types/utils/EmptyObject'; -import { isEmptyObject} from '@src/types/utils/EmptyObject'; +import {isEmptyObject} from '@src/types/utils/EmptyObject'; type MemberEmailsToAccountIDs = Record; type UnitRate = {rate: number}; diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index 6f1425f9b152..c8b7e673aed4 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -11,7 +11,7 @@ import type Report from '@src/types/onyx/Report'; import type {Message, ReportActions} from '@src/types/onyx/ReportAction'; import type ReportAction from '@src/types/onyx/ReportAction'; import type {EmptyObject} from '@src/types/utils/EmptyObject'; -import { isEmptyObject} from '@src/types/utils/EmptyObject'; +import {isEmptyObject} from '@src/types/utils/EmptyObject'; import * as CollectionUtils from './CollectionUtils'; import * as Environment from './Environment/Environment'; import isReportMessageAttachment from './isReportMessageAttachment'; diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index a51220bd1df4..33a18b8534df 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -23,7 +23,7 @@ import type {Message, ReportActionBase, ReportActions} from '@src/types/onyx/Rep import type {Receipt, WaypointCollection} from '@src/types/onyx/Transaction'; import type DeepValueOf from '@src/types/utils/DeepValueOf'; import type {EmptyObject} from '@src/types/utils/EmptyObject'; -import { isEmptyObject, isNotEmptyObject} from '@src/types/utils/EmptyObject'; +import {isEmptyObject, isNotEmptyObject} from '@src/types/utils/EmptyObject'; import type IconAsset from '@src/types/utils/IconAsset'; import * as CurrencyUtils from './CurrencyUtils'; import DateUtils from './DateUtils'; diff --git a/src/libs/SelectionScraper/index.ts b/src/libs/SelectionScraper/index.ts index ebd06a342a51..955fe693c856 100644 --- a/src/libs/SelectionScraper/index.ts +++ b/src/libs/SelectionScraper/index.ts @@ -1,5 +1,5 @@ import render from 'dom-serializer'; -import type { Node} from 'domhandler'; +import type {Node} from 'domhandler'; import {DataNode, Element} from 'domhandler'; import Str from 'expensify-common/lib/str'; import {parseDocument} from 'htmlparser2'; diff --git a/src/libs/actions/App.ts b/src/libs/actions/App.ts index dc816ebce8cb..f88bfe09e516 100644 --- a/src/libs/actions/App.ts +++ b/src/libs/actions/App.ts @@ -1,6 +1,6 @@ // Issue - https://github.com/Expensify/App/issues/26719 import Str from 'expensify-common/lib/str'; -import type { AppStateStatus} from 'react-native'; +import type {AppStateStatus} from 'react-native'; import {AppState} from 'react-native'; import type {OnyxCollection, OnyxEntry, OnyxUpdate} from 'react-native-onyx'; import Onyx from 'react-native-onyx'; diff --git a/src/libs/actions/MapboxToken.ts b/src/libs/actions/MapboxToken.ts index 42f8abf352f0..54f99b58fbeb 100644 --- a/src/libs/actions/MapboxToken.ts +++ b/src/libs/actions/MapboxToken.ts @@ -1,5 +1,5 @@ import {isAfter} from 'date-fns'; -import type { NativeEventSubscription} from 'react-native'; +import type {NativeEventSubscription} from 'react-native'; import {AppState} from 'react-native'; import Onyx from 'react-native-onyx'; import * as ActiveClientManager from '@libs/ActiveClientManager'; diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index 9b8e68168df7..13e4222f942f 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -38,7 +38,7 @@ import type Report from '@src/types/onyx/Report'; import type {Message, ReportActionBase, ReportActions} from '@src/types/onyx/ReportAction'; import type ReportAction from '@src/types/onyx/ReportAction'; import type {EmptyObject} from '@src/types/utils/EmptyObject'; -import { isEmptyObject, isNotEmptyObject} from '@src/types/utils/EmptyObject'; +import {isEmptyObject, isNotEmptyObject} from '@src/types/utils/EmptyObject'; import * as Session from './Session'; import * as Welcome from './Welcome'; diff --git a/src/libs/getCurrentPosition/index.android.ts b/src/libs/getCurrentPosition/index.android.ts index 77ecdf236149..bd27944b8830 100644 --- a/src/libs/getCurrentPosition/index.android.ts +++ b/src/libs/getCurrentPosition/index.android.ts @@ -2,7 +2,7 @@ // If we update our react native version, we need to test this file again import Geolocation from '@react-native-community/geolocation'; import RNAndroidLocationEnabler from 'react-native-android-location-enabler'; -import type { GetCurrentPosition} from './getCurrentPosition.types'; +import type {GetCurrentPosition} from './getCurrentPosition.types'; import {GeolocationErrorCode} from './getCurrentPosition.types'; Geolocation.setRNConfiguration({ diff --git a/src/libs/getCurrentPosition/index.ts b/src/libs/getCurrentPosition/index.ts index 2bfefe431892..318d4f64ed34 100644 --- a/src/libs/getCurrentPosition/index.ts +++ b/src/libs/getCurrentPosition/index.ts @@ -1,4 +1,4 @@ -import type { GetCurrentPosition} from './getCurrentPosition.types'; +import type {GetCurrentPosition} from './getCurrentPosition.types'; import {GeolocationErrorCode} from './getCurrentPosition.types'; const getCurrentPosition: GetCurrentPosition = (success, error, options) => { diff --git a/src/libs/setShouldShowComposeInputKeyboardAware/setShouldShowComposeInputKeyboardAwareBuilder.ts b/src/libs/setShouldShowComposeInputKeyboardAware/setShouldShowComposeInputKeyboardAwareBuilder.ts index 264ebe4384de..8d5ef578b66c 100644 --- a/src/libs/setShouldShowComposeInputKeyboardAware/setShouldShowComposeInputKeyboardAwareBuilder.ts +++ b/src/libs/setShouldShowComposeInputKeyboardAware/setShouldShowComposeInputKeyboardAwareBuilder.ts @@ -1,5 +1,5 @@ import type {EmitterSubscription} from 'react-native'; -import { Keyboard} from 'react-native'; +import {Keyboard} from 'react-native'; import type {KeyboardEventName} from 'react-native/Libraries/Components/Keyboard/Keyboard'; import * as Composer from '@userActions/Composer'; import type SetShouldShowComposeInputKeyboardAware from './types'; diff --git a/src/pages/UnlinkLoginPage.tsx b/src/pages/UnlinkLoginPage.tsx index 5f63da70b4ee..c8be7a16f3f6 100644 --- a/src/pages/UnlinkLoginPage.tsx +++ b/src/pages/UnlinkLoginPage.tsx @@ -1,6 +1,6 @@ import type {StackScreenProps} from '@react-navigation/stack'; import React, {useEffect} from 'react'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import type {OnyxEntry} from 'react-native-onyx'; import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator'; import usePrevious from '@hooks/usePrevious'; diff --git a/src/pages/home/ReportScreenContext.ts b/src/pages/home/ReportScreenContext.ts index 28ceb77cfd0d..98d593b92d91 100644 --- a/src/pages/home/ReportScreenContext.ts +++ b/src/pages/home/ReportScreenContext.ts @@ -1,4 +1,4 @@ -import type { RefObject} from 'react'; +import type {RefObject} from 'react'; import {createContext} from 'react'; import type {FlatList, GestureResponderEvent} from 'react-native'; diff --git a/src/pages/home/report/ReportActionItemGrouped.tsx b/src/pages/home/report/ReportActionItemGrouped.tsx index 3fb2cea2a8b4..f493f7a89334 100644 --- a/src/pages/home/report/ReportActionItemGrouped.tsx +++ b/src/pages/home/report/ReportActionItemGrouped.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; import type ChildrenProps from '@src/types/utils/ChildrenProps'; diff --git a/src/pages/home/report/ReportActionItemMessage.tsx b/src/pages/home/report/ReportActionItemMessage.tsx index 36b677b64718..d98d1b901578 100644 --- a/src/pages/home/report/ReportActionItemMessage.tsx +++ b/src/pages/home/report/ReportActionItemMessage.tsx @@ -1,7 +1,7 @@ import type {ReactElement} from 'react'; import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { Text, View} from 'react-native'; +import {Text, View} from 'react-native'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; import * as ReportActionsUtils from '@libs/ReportActionsUtils'; diff --git a/src/pages/home/report/ReportActionItemSingle.tsx b/src/pages/home/report/ReportActionItemSingle.tsx index 11a221bf9928..9306d94b4269 100644 --- a/src/pages/home/report/ReportActionItemSingle.tsx +++ b/src/pages/home/report/ReportActionItemSingle.tsx @@ -1,6 +1,6 @@ import React, {useCallback, useMemo} from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; -import { View} from 'react-native'; +import {View} from 'react-native'; import Avatar from '@components/Avatar'; import MultipleAvatars from '@components/MultipleAvatars'; import OfflineWithFeedback from '@components/OfflineWithFeedback'; diff --git a/src/pages/home/report/withReportAndReportActionOrNotFound.tsx b/src/pages/home/report/withReportAndReportActionOrNotFound.tsx index c628ff389817..fb0a00e2d10d 100644 --- a/src/pages/home/report/withReportAndReportActionOrNotFound.tsx +++ b/src/pages/home/report/withReportAndReportActionOrNotFound.tsx @@ -1,9 +1,9 @@ /* eslint-disable rulesdir/no-negated-variables */ import type {RouteProp} from '@react-navigation/native'; import type {ComponentType, ForwardedRef, RefAttributes} from 'react'; -import React, { useCallback, useEffect} from 'react'; +import React, {useCallback, useEffect} from 'react'; import type {OnyxCollection, OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import FullscreenLoadingIndicator from '@components/FullscreenLoadingIndicator'; import withWindowDimensions from '@components/withWindowDimensions'; import type {WindowDimensionsProps} from '@components/withWindowDimensions/types'; diff --git a/src/pages/home/report/withReportOrNotFound.tsx b/src/pages/home/report/withReportOrNotFound.tsx index 2ae1655c66c0..7613bafeacdc 100644 --- a/src/pages/home/report/withReportOrNotFound.tsx +++ b/src/pages/home/report/withReportOrNotFound.tsx @@ -3,7 +3,7 @@ import type {RouteProp} from '@react-navigation/native'; import type {ComponentType, ForwardedRef, RefAttributes} from 'react'; import React from 'react'; import type {OnyxCollection, OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import FullscreenLoadingIndicator from '@components/FullscreenLoadingIndicator'; import getComponentDisplayName from '@libs/getComponentDisplayName'; import * as ReportUtils from '@libs/ReportUtils'; diff --git a/src/pages/workspace/withPolicy.tsx b/src/pages/workspace/withPolicy.tsx index b1cd9ce69d62..90eda3651a04 100644 --- a/src/pages/workspace/withPolicy.tsx +++ b/src/pages/workspace/withPolicy.tsx @@ -1,10 +1,10 @@ import type {RouteProp} from '@react-navigation/native'; -import { useNavigationState} from '@react-navigation/native'; +import {useNavigationState} from '@react-navigation/native'; import PropTypes from 'prop-types'; import type {ComponentType, ForwardedRef, RefAttributes} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import policyMemberPropType from '@pages/policyMemberPropType'; import * as Policy from '@userActions/Policy'; import CONST from '@src/CONST'; diff --git a/src/pages/workspace/withPolicyAndFullscreenLoading.tsx b/src/pages/workspace/withPolicyAndFullscreenLoading.tsx index 19201311c5d7..892facb92823 100644 --- a/src/pages/workspace/withPolicyAndFullscreenLoading.tsx +++ b/src/pages/workspace/withPolicyAndFullscreenLoading.tsx @@ -1,12 +1,12 @@ import isEmpty from 'lodash/isEmpty'; import type {ComponentType, ForwardedRef, RefAttributes} from 'react'; -import React, { forwardRef} from 'react'; +import React, {forwardRef} from 'react'; import type {OnyxEntry} from 'react-native-onyx'; -import { withOnyx} from 'react-native-onyx'; +import {withOnyx} from 'react-native-onyx'; import FullscreenLoadingIndicator from '@components/FullscreenLoadingIndicator'; import compose from '@libs/compose'; import ONYXKEYS from '@src/ONYXKEYS'; -import type { WithPolicyOnyxProps, WithPolicyProps} from './withPolicy'; +import type {WithPolicyOnyxProps, WithPolicyProps} from './withPolicy'; import withPolicy, {policyDefaultProps} from './withPolicy'; type WithPolicyAndFullscreenLoadingOnyxProps = { diff --git a/src/styles/index.ts b/src/styles/index.ts index 52449b8e9733..7eb5e9345bef 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -3,7 +3,7 @@ import type {LineLayerStyleProps} from '@rnmapbox/maps/src/utils/MapboxStyles'; import lodashClamp from 'lodash/clamp'; import type {LineLayer} from 'react-map-gl'; import type {AnimatableNumericValue, Animated, ImageStyle, TextStyle, ViewStyle} from 'react-native'; -import { StyleSheet} from 'react-native'; +import {StyleSheet} from 'react-native'; import type {CustomAnimation} from 'react-native-animatable'; import type {PickerStyle} from 'react-native-picker-select'; import type {MixedStyleDeclaration, MixedStyleRecord} from 'react-native-render-html'; diff --git a/src/styles/utils/generators/TooltipStyleUtils.ts b/src/styles/utils/generators/TooltipStyleUtils.ts index 86b1a7f90482..90cef9a6f568 100644 --- a/src/styles/utils/generators/TooltipStyleUtils.ts +++ b/src/styles/utils/generators/TooltipStyleUtils.ts @@ -1,4 +1,4 @@ -import type { TextStyle, View, ViewStyle} from 'react-native'; +import type {TextStyle, View, ViewStyle} from 'react-native'; import {Animated} from 'react-native'; import fontFamily from '@styles/utils/fontFamily'; import positioning from '@styles/utils/positioning'; diff --git a/src/styles/utils/index.ts b/src/styles/utils/index.ts index d262f19e10cb..b3b4924ebb19 100644 --- a/src/styles/utils/index.ts +++ b/src/styles/utils/index.ts @@ -1,5 +1,5 @@ import type {Animated, DimensionValue, ImageStyle, PressableStateCallbackType, StyleProp, TextStyle, ViewStyle} from 'react-native'; -import { StyleSheet} from 'react-native'; +import {StyleSheet} from 'react-native'; import type {EdgeInsets} from 'react-native-safe-area-context'; import type {ValueOf} from 'type-fest'; import * as Browser from '@libs/Browser'; @@ -10,7 +10,7 @@ import type {ThemeColors} from '@styles/theme/types'; import variables from '@styles/variables'; import CONST from '@src/CONST'; import type {Transaction} from '@src/types/onyx'; -import {defaultStyles } from '..'; +import {defaultStyles} from '..'; import type {ThemeStyles} from '..'; import containerComposeStyles from './containerComposeStyles'; import fontFamily from './fontFamily';