npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-input-suggestion

v1.0.2

Published

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

Readme

react-native-input-suggestion / Suggestion Input

A customizable React Native text input component that suggests and auto-fills text from a given suggestion string. It supports drag-to-fill, tap-to-fill, and auto-suggestion with various customization options like colors, styles, and fill modes.


SuggestionInput Demo

✨ Features

  • 🔍 Real-time suggestion and auto-fill as user types.
  • 🔁 Two fill modes: textPress (tap) and textDrag (drag).
  • 🎨 Fully customizable styles and colors.
  • ⚖️ Configurable case-sensitivity.
  • 🧹 Easily integrable in any form or input field.

📦 Installation

npm install react-native-suggestion-input
# or
yarn add react-native-suggestion-input

🧹 Usage Example

import React, { useState } from 'react';
import { View } from 'react-native';
import SuggestionInput from 'react-native-suggestion-input';

const App = () => {
  const [text, setText] = useState('');

  return (
    <View style={{ padding: 20 }}>
      <SuggestionInput
        value={text}
        onChangeText={setText}
        suggestion="Ants are tiny but their bite is strong"
        inputTextColor="black"
        suggestionTextColor="gray"
        placeholder="Type here..."
        textStyle={{ fontSize: 16, fontWeight: '500' }}
        fillType="textDrag"
        caseSensitive={false}
        containerStyle={{ borderColor: '#aaa', borderWidth: 1 }}
        showFillButton={true}
        maxLength={50}
      />
    </View>
  );
};

export default App;

⚙️ Props

| Prop | Type | Default | Description | | --------------------- | --------------------------- | -------------- | ------------------------------------------------------------------------- | | value | string | — | The current value of the input field. | | onChangeText | (text: string) => void | — | Callback when text changes. | | suggestion | string | — | Suggestion text to match and fill. | | inputTextColor | string | 'black' | Color of the user-entered text. | | suggestionTextColor | string | 'gray' | Color of the suggestion text. | | placeholder | string | 'Type here…' | Placeholder for the input. | | textStyle | TextStyle | — | Style for the text input and suggestion. | | fillType | 'textPress' \| 'textDrag' | 'textPress' | Fill mode: tap or drag to fill. | | caseSensitive | boolean | false | If true, matches suggestion case-sensitively. | | containerStyle | ViewStyle | — | Style for the outer container. | | showFillButton | boolean | false | Show a "Fill" button next to suggestion text. | | ...TextInputProps | TextInputProps | — | All other native TextInput props like maxLength, keyboardType, etc. |


🧠 Benefits

  • Improves data entry speed and accuracy.
  • Mimics Gmail-style tab-to-complete experience.
  • Enhances user experience with visual feedback and suggestion clarity.
  • Allows full control over fill behavior, style, and interaction mode.

🧑‍💻 Author

Made with ❤️ by Antos Maman


📄 License

MIT License