UNPKG

react-native-input-suggestion

Version:

A customizable React Native TextInput with inline suggestion, auto-complete, and swipe-to-fill or tap-to-fill functionality.

18 lines (17 loc) 548 B
import React from 'react'; import { TextStyle, TextInputProps, ViewStyle } from 'react-native'; interface Props extends TextInputProps { value: string; onChangeText: (text: string) => void; suggestion: string; inputTextColor?: string; suggestionTextColor?: string; placeholder?: string; textStyle: TextStyle; fillType?: 'textPress' | 'textDrag'; caseSensitive: boolean; containerStyle: ViewStyle; showFillButton: boolean; } declare const SuggestionInput: React.FC<Props>; export default SuggestionInput;