File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,20 +41,21 @@ const shadow = {
4141}
4242
4343export const Toast : React . FC < ToastConfig & ToastInternalConfig > = ( {
44- intent,
45- message,
46- duration,
47- onClose,
48- id,
49- index,
50- shouldVibrate,
51- onPress,
44+ bg,
5245 borderColor,
5346 closeButtonBgColor,
54- closeIconColor,
5547 closeIconBorderRadius,
56- bg ,
48+ closeIconColor ,
5749 color,
50+ duration,
51+ id,
52+ index,
53+ intent,
54+ message,
55+ onClose,
56+ onPress,
57+ position,
58+ shouldVibrate,
5859 subMessage
5960} ) => {
6061 const isSuccess = intent === 'SUCCESS'
@@ -95,7 +96,7 @@ export const Toast: React.FC<ToastConfig & ToastInternalConfig> = ({
9596
9697 const translateY = animation . interpolate ( {
9798 inputRange : [ 0 , 0.5 , 1 ] ,
98- outputRange : [ - topOffset , 0 , - topOffset ] ,
99+ outputRange : [ position === 'BOTTOM' ? topOffset : - topOffset , 0 , - topOffset ] ,
99100 extrapolate : 'clamp'
100101 } )
101102
You can’t perform that action at this time.
0 commit comments