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

@3beeepb/react-native-prompt

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@3beeepb/react-native-prompt

Cross Platform (iOS / Android) implementation of Prompt for React Native

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-prompt npm version NPM

A cross-platform (iOS / Android) prompt component for React Native.

Add it to your project

  1. Run npm install @3beeepb/react-native-prompt --save

  2. Import the library

    import Prompt from '@3beeepb/react-native-prompt';
    
  3. Just use it like this:

    <Prompt
      titleText={'What is your name?'}
      onCancel={() => console.log('cancel')}
      onDone={() => console.log('done')}
    >
        <TextInput />
    </>
    

Properties

NameDescriptionType
titleTextTitle textstring
cancelTextCancel button textstring
doneTextDone button textstring
titleTextStyleTitle text stylesStyleSheet
cancelTextStyleCancel button text stylesStyleSheet
doneTextStyleDone button text styleStyleSheet
onCancelWill be called when a user press left (Cancel) button.() => void
onDoneWill be called when a user press right (Done/OK) button.() => void

Contribution

Please make sure to run the tests before proposing a PR by running npm test.

Keywords

FAQs

Package last updated on 22 Jan 2021

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