@@ -2,7 +2,7 @@ import {Str} from 'expensify-common';
2
2
import type { ForwardedRef } from 'react' ;
3
3
import React , { forwardRef , useCallback , useEffect , useRef , useState } from 'react' ;
4
4
import type { GestureResponderEvent , LayoutChangeEvent , NativeSyntheticEvent , StyleProp , TextInput , TextInputFocusEventData , ViewStyle } from 'react-native' ;
5
- import { ActivityIndicator , Platform , StyleSheet , View } from 'react-native' ;
5
+ import { ActivityIndicator , StyleSheet , View } from 'react-native' ;
6
6
import { useSharedValue , withSpring } from 'react-native-reanimated' ;
7
7
import Checkbox from '@components/Checkbox' ;
8
8
import FormHelpMessage from '@components/FormHelpMessage' ;
@@ -25,6 +25,7 @@ import useMarkdownStyle from '@hooks/useMarkdownStyle';
25
25
import useStyleUtils from '@hooks/useStyleUtils' ;
26
26
import useTheme from '@hooks/useTheme' ;
27
27
import useThemeStyles from '@hooks/useThemeStyles' ;
28
+ import getPlatform from '@libs/getPlatform' ;
28
29
import isInputAutoFilled from '@libs/isInputAutoFilled' ;
29
30
import variables from '@styles/variables' ;
30
31
import CONST from '@src/CONST' ;
@@ -83,7 +84,7 @@ function BaseTextInput(
83
84
) {
84
85
// For iOS, we don't need to measure the text input because it already has auto grow behavior
85
86
// See TextInputMeasurement.ios.tsx for more details
86
- const isExternalAutoGrowMeasurement = Platform . OS !== 'ios' && autoGrow ;
87
+ const isExternalAutoGrowMeasurement = getPlatform ( ) !== CONST . PLATFORM . IOS && autoGrow ;
87
88
88
89
const InputComponent = InputComponentMap . get ( type ) ?? RNTextInput ;
89
90
const isMarkdownEnabled = type === 'markdown' ;
0 commit comments