🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

react-native-prompt-android

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-prompt-android - npm Package Compare versions

Comparing version

to
0.3.1

22

index.android.js

@@ -75,3 +75,16 @@ import {

): void {
let buttons = callbackOrButtons;
const defaultButtons = [
{
text: 'Cancel',
},
{
text: 'OK',
onPress: callbackOrButtons
}
];
let buttons = typeof callbackOrButtons === 'function'
? defaultButtons
: callbackOrButtons;
let config = {

@@ -82,9 +95,2 @@ title: title || '',

if (typeof callbackOrButtons === 'function') {
buttons.push({
text: 'OK',
onPress: callbackOrButtons
});
}
if (options) {

@@ -91,0 +97,0 @@ config = {

{
"name": "react-native-prompt-android",
"version": "0.3.0",
"version": "0.3.1",
"description": "Polyfill for Alert.prompt on Android",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet