
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-prompt
Advanced tools
A cross-platform prompt component for React Native.
$ npm install react-native-prompt --save
| iOS | Android |
|---|---|
![]() | ![]() |
import Prompt from 'react-native-prompt';
// Inside render()
<Prompt
title="Say something"
placeholder="Start typing"
defaultValue="Hello"
visible={ this.state.promptVisible }
onCancel={ () => this.setState({
promptVisible: false,
message: "You cancelled"
}) }
onSubmit={ (value) => this.setState({
promptVisible: false,
message: `You said "${value}"`
}) }/>
Please refer to the full working example here.
Props:
visible (boolean) -- When true, the prompt is displayed, closes otherwisetitle (string, required) -- The title text of the promptplaceholder (string) -- The placeholder text of the promptdefaultValue (string) -- The default value of the promptonCancel (function, required) -- Function that is called when user cancels promptonSubmit (function, required) -- Function that is called with user's value when they submitsubmitText (string) -- The string that is displayed on the submit button (defaults to "OK")cancelText (string) -- The string that is displayed on the cancel button (defaults to "Cancel")onChangeText (function) -- Function that is called with user input when it changes.textInputProps (Object) -- Additional props on the input elementInstall dev modules:
npm install
npm test
value when defaultValue changes. (Thanks https://github.com/vessp)flex: 1 style. (Thanks https://github.com/stevehollaar)textInputProps to allow additional props to be passed to the input element. Thanks @yueshuaijie!FAQs
A cross-platform prompt component for React Native.
We found that react-native-prompt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.