@@ -20,10 +20,10 @@ import {
2020} from './common' ;
2121
2222const s = StyleSheet . create ( {
23- container : {
23+ safeArea : {
2424 alignItems : 'center' ,
2525 } ,
26- contentContainer : {
26+ container : {
2727 margin : 10 ,
2828 backgroundColor : '#ffffff' ,
2929 borderRadius : 33 ,
@@ -95,14 +95,14 @@ export interface ToastProps extends NotifierComponentProps {
9595 * @example iconSource: require('./icons/success.png') */
9696 iconSource ?: ImageSourcePropType ;
9797
98- /** Style for the outermost container of the toast.
98+ /** Style for the safe area container of the toast.
9999 * @default null */
100- containerStyle ?: StyleProp < ViewStyle > ;
100+ safeAreaStyle ?: StyleProp < ViewStyle > ;
101101
102102 /** Style for the toast content container, often used to modify background color,
103103 * shadows, padding, or margin.
104104 * @default null */
105- contentContainerStyle ?: StyleProp < ViewStyle > ;
105+ containerStyle ?: StyleProp < ViewStyle > ;
106106
107107 /** Style for the icon container, useful for adjusting background color or size.
108108 * @default null */
@@ -139,8 +139,8 @@ export const ToastComponent = ({
139139 maxTitleLines,
140140 maxDescriptionLines,
141141 iconSource,
142+ safeAreaStyle,
142143 containerStyle,
143- contentContainerStyle,
144144 iconContainerStyle,
145145 iconStyle,
146146 textContainerStyle,
@@ -151,13 +151,13 @@ export const ToastComponent = ({
151151} : ToastProps ) => {
152152 const Container = ContainerComponent ?? ViewWithOffsets ;
153153 return (
154- < Container style = { [ s . container , containerStyle ] } >
154+ < Container style = { [ s . safeArea , safeAreaStyle ] } >
155155 < View
156156 style = { [
157- s . contentContainer ,
157+ s . container ,
158158 commonStyles . shadow ,
159159 ! type && ! iconSource && s . contentContainerNoIcon ,
160- contentContainerStyle ,
160+ containerStyle ,
161161 ] }
162162 >
163163 { ( ! ! type || ! ! iconSource ) && (
0 commit comments