replyke-rn
Version:
Replyke React Native components: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
8 lines (7 loc) • 355 B
TypeScript
import { NativeSyntheticEvent, TextInputSelectionChangeEventData } from "react-native";
export default function useTextInputCursorIndicator(): {
cursorPosition: number;
isSelectionActive: boolean;
handleSelectionChange: (event: NativeSyntheticEvent<TextInputSelectionChangeEventData>) => void;
handleTextChange: (text: string) => void;
};