Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-input-sheet

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-input-sheet

A simple react native input component , allows user inputs something from the sheet come from bottom, just like actionSheet

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-input-sheet Monthly download Total downloads

Install

npm install react-native-input-sheet --save

Example

example

Usage

import InputSheet, {InputSheetRef} from 'react-native-input-sheet';

const Example = () => {
    const inputSheetRef = useRef<InputSheetRef>(null);

    const showInputSheet = useCallback(() => {
        inputSheetRef.current?.show();
    }, []);
    return (
        <>
            <Button onPress={showInputSheet}>Press me</Button>
            <InputSheet ref={inputSheetRef} onSubmit={console.log} />
        </>
    )
}

Properties

PropDefaultRequiredDescription
defaultValuefalsenothe default value of textInput
requiredtruenoWhether the text input value is required
placeholder''noThe placeholder of the textInput
onSubmit(text) => {}noFunction that is called when user submits it
buttonText'submit'noThe string that is displayed on the submit button
maskStyle-noThe style of the masker( )
style-noThe style of the container( )
inputStyle-noThe style of the textInput( )
buttonTextStyle-noThe style of the submit button text( )
autoClearTexttruenoWhether textInput needs be clear after onSubmit finished
inputPropsundefinedn oThe props of textInput
keyboardVerticalOffset10 2noThe keyboardVerticalOffset of KeyboardAvoidingView

Keywords

FAQs

Package last updated on 26 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc