ref(TS) Require interfaces to start with I (#12424)

This commit is contained in:
Robert Pintilii
2022-10-20 12:11:27 +03:00
committed by GitHub
parent 10d202439b
commit 2938d1f2dc
197 changed files with 971 additions and 954 deletions

View File

@@ -13,19 +13,19 @@ import {
import Icon from '../../../icons/components/Icon';
import { IconCloseCircle } from '../../../icons/svg';
import BaseTheme from '../../../ui/components/BaseTheme.native';
import { InputProps } from '../types';
import { IInputProps } from '../types';
import styles from './inputStyles';
interface IInputProps extends InputProps {
interface IProps extends IInputProps {
/**
* Custom styles to be applied to the component.
*/
customStyles?: CustomStyles;
customStyles?: ICustomStyles;
}
interface CustomStyles {
interface ICustomStyles {
container?: Object;
input?: Object;
}
@@ -40,7 +40,7 @@ const Input = ({
onChange,
placeholder,
value
}: IInputProps) => {
}: IProps) => {
const [ focused, setFocused ] = useState(false);
const handleChange = useCallback((e: NativeSyntheticEvent<TextInputChangeEventData>) => {
const { nativeEvent: { text } } = e;