diff --git a/packages/vibrant-core/src/lib/TextInput/TextInput.native.tsx b/packages/vibrant-core/src/lib/TextInput/TextInput.native.tsx index e9c9e5c08..b2dd317e0 100644 --- a/packages/vibrant-core/src/lib/TextInput/TextInput.native.tsx +++ b/packages/vibrant-core/src/lib/TextInput/TextInput.native.tsx @@ -1,6 +1,11 @@ import { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'; -import type { KeyboardTypeOptions, TextInputProps as RNTextInputProps } from 'react-native'; -import { TextInput as RNTextInput, StyleSheet, NativeSyntheticEvent, TextInputKeyPressEventData } from 'react-native'; +import type { + KeyboardTypeOptions, + NativeSyntheticEvent, + TextInputProps as RNTextInputProps, + TextInputKeyPressEventData, +} from 'react-native'; +import { TextInput as RNTextInput, StyleSheet } from 'react-native'; import styled from '@emotion/native'; import { createShouldForwardProp } from '../createShouldForwardProp'; import { platform } from '../platform'; @@ -110,7 +115,9 @@ export const TextInput = forwardRef( onBlur?.(); }} - onKeyPress={(event: NativeSyntheticEvent) => onKeyPress?.({ key: event.nativeEvent.key, prevent: () => event.preventDefault() })} + onKeyPress={(event: NativeSyntheticEvent) => + onKeyPress?.({ key: event.nativeEvent.key, prevent: () => event.preventDefault() }) + } onChangeText={(value: string) => { const replacedValue = replaceValue({ pattern, value }); diff --git a/packages/vibrant-core/src/lib/TextInput/TextInput.tsx b/packages/vibrant-core/src/lib/TextInput/TextInput.tsx index 1c246d7c2..248b19d07 100644 --- a/packages/vibrant-core/src/lib/TextInput/TextInput.tsx +++ b/packages/vibrant-core/src/lib/TextInput/TextInput.tsx @@ -1,4 +1,5 @@ -import { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState, KeyboardEvent, FormEvent } from 'react'; +import { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'; +import type { FormEvent, KeyboardEvent } from 'react'; import styled from '@emotion/styled'; import { createShouldForwardProp } from '../createShouldForwardProp'; import type { SystemProps, TextInputProps, TextInputRef } from './TextInputProps';