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

react-native-popup-confirm-toast

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-popup-confirm-toast - npm Package Compare versions

Comparing version

to
2.3.5

116

index.d.ts

@@ -6,61 +6,65 @@ declare module "react-native-popup-confirm-toast" {

export interface Config {
title?: string
text?: string
titleTextStyle?: StyleProp<TextStyle>
descTextStyle?: StyleProp<TextStyle>
backgroundColor?: string
timeColor?: string
position?: "top" | "bottom"
icon?: FC
timing?: number
statusBarType?: "default" | "dark-content" | "light-content"
statusBarTranslucent?: boolean
statusBarHidden?: boolean
statusBarAndroidHidden?: boolean
statusBarAppleHidden?: boolean
hiddenDuration?: number
startDuration?: number
onOpen?: () => void
onOpenComplete?: () => void
onClose?: () => void
onCloseComplete?: () => void
}
title?: string
text?: string
titleTextStyle?: StyleProp<TextStyle>
descTextStyle?: StyleProp<TextStyle>
backgroundColor?: string
timeColor?: string
position?: "top" | "bottom"
icon?: FC
timing?: number
statusBarType?: "default" | "dark-content" | "light-content"
statusBarTranslucent?: boolean
statusBarHidden?: boolean
statusBarAndroidHidden?: boolean
statusBarAppleHidden?: boolean
hiddenDuration?: number
startDuration?: number
onOpen?: () => void
onOpenComplete?: () => void
onClose?: () => void
onCloseComplete?: () => void
}
export interface SheetConfig {
background?: string
height?: number
duration?: number
closeDuration?: number
closeOnDragDown?: boolean
closeOnPressMask?: boolean
closeOnPressBack?: boolean
dragTopOnly?: boolean
component?: FC
onOpen?: () => void
onOpenComplete?: () => void
onClose?: () => void
onCloseComplete?: () => void
customStyles?: StyleProp<ViewStyle>
timing?: number
keyboardHeightAdjustment?: boolean
}
export interface Toast {
show: (props: Config) => void
hide: () => void
}
export interface Popup {
show: (props: Config) => void
hide: () => void
}
export interface SheetConfig {
background?: string
height?: number
duration?: number
closeDuration?: number
closeOnDragDown?: boolean
closeOnPressMask?: boolean
closeOnPressBack?: boolean
dragTopOnly?: boolean
component?: FC
onOpen?: () => void
onOpenComplete?: () => void
onClose?: () => void
onCloseComplete?: () => void
customStyles?: StyleProp<ViewStyle>
timing?: number
keyboardHeightAdjustment?: boolean
}
export interface SPSheet {
show: (props: SheetConfig) => void
setHeight: (height: number, onOpenComplete: () => void) => void
hide: () => void
}
export interface Toast {
show: (props: Config) => void
hide: () => void
}
export const Toast: Toast
export const Popup: Popup
export const SPSheet: SPSheet
export const Root: FC
export interface Popup {
show: (props: Config) => void
hide: () => void
}
export interface SPSheet {
show: (props: SheetConfig) => void
setHeight: (height: number, onOpenComplete: () => void) => void
hide: () => void
}
export const Toast: Toast
export const Popup: Popup
export const SPSheet: SPSheet
export const Root: FC
export const getStatusBarHeight: FC
export const isIPhoneWithMonobrow: FC
}

@@ -5,10 +5,11 @@ import Root from './src/main/Root';

import SPSheet from './src/main/SPSheet';
import {getStatusBarHeight} from './src/main/Helper';
import {getStatusBarHeight, isIPhoneWithMonobrow} from './src/main/Helper';
export {
Root,
Popup,
SPSheet,
Toast,
Root,
Popup,
SPSheet,
Toast,
getStatusBarHeight,
isIPhoneWithMonobrow,
};
{
"name": "react-native-popup-confirm-toast",
"version": "2.3.4",
"version": "2.3.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,3 +12,4 @@ # react-native-popup-confirm-toast

- typescript full support thanks @jrdn91
- getStatusBarHeight
- isIPhoneWithMonobrow

@@ -15,0 +16,0 @@ ## Example Bottom Sheet