
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
react-native-prompt-android
Advanced tools
A polyfill library for Alert.prompt on Android platform, working both on Android and iOS platform(iOS using AlertIOS.prompt)
npm i react-native-prompt-android --save
You can use react-native-cli:
react-native link react-native-prompt-android
Or rnpm:
rnpm link react-native-prompt-android
import prompt from 'react-native-prompt-android';
prompt(
'Enter password',
'Enter your password to claim your $1.5B in lottery winnings',
[
{text: 'Cancel', onPress: () => console.log('Cancel Pressed'), style: 'cancel'},
{text: 'OK', onPress: password => console.log('OK Pressed, password: ' + password)},
],
{
type: 'secure-text',
cancelable: false,
defaultValue: 'test',
placeholder: 'placeholder'
}
);
name | description | type | default |
---|---|---|---|
type | Text input type: 'numeric', 'secure-text', 'phone-pad', 'email-address' | String | 'default' |
cancelable | Boolean | ||
defaultValue | Default input value | String | '' |
keyboardType | The keyboard type of first text field(if exists). One of 'default' , 'email-address' , 'numeric' , 'phone-pad' , 'ascii-capable' , 'numbers-and-punctuation' , 'url' , 'number-pad' , 'name-phone-pad' , 'decimal-pad' , 'twitter' or 'web-search' . | String | 'default' |
placeholder | String | '' |
FAQs
Polyfill for Alert.prompt on Android
The npm package react-native-prompt-android receives a total of 3,711 weekly downloads. As such, react-native-prompt-android popularity was classified as popular.
We found that react-native-prompt-android demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.