import React, { useEffect, useCallback } from "react"; import { Input } from "@flip.id/ui-kit"; import WriteNotes from "../../../icons/function/WriteNotes"; import { VStack, Box, Flex } from "native-base"; import type { AccessibilityProps } from "react-native"; import type { InterfaceInputProps } from "native-base/lib/typescript/components/primitives/Input/types"; export interface INotesContainer { note: string; onChangeNote?: (text: string) => void; inputRef?: InterfaceInputProps["ref"]; } export const NotesContainer: React.FC = ( props ) => { const { note, onChangeNote, inputRef } = props; const onChangeText = useCallback( (text: string) => { onChangeNote?.(text); }, [onChangeNote] ); useEffect(() => { onChangeText(`${note}`); }, [note, onChangeText]); return ( ); }; export default NotesContainer;