react-native-popup-confirm-toast
Advanced tools
Comparing version
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 | ||
} |
11
index.js
@@ -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 |
9247120
01174
0.26%354
0.28%