@@ -32,17 +32,17 @@ export default class ToastsScreen extends Component {
32
32
33
33
toggleVisibility = ( ) => {
34
34
// Im using this for storing toast visible since setState is async and takes time to response
35
- this . showToast = ! this . showToast ;
35
+ this . showToast = ! this . showToast ;
36
36
this . setState ( {
37
37
visible : this . showToast
38
38
} ) ;
39
39
} ;
40
40
41
41
renderCustomContent = ( ) => {
42
42
return (
43
- < View flex padding-10 bg-white >
44
- < Text text60 > This is a custom content</ Text >
45
- < Text >
43
+ < View bg-$backgroundNeutralLight flex padding-10 >
44
+ < Text $textDefault text60 > This is a custom content</ Text >
45
+ < Text $textDefault >
46
46
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
47
47
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to
48
48
make a type specimen book.
@@ -54,13 +54,17 @@ export default class ToastsScreen extends Component {
54
54
renderAboveToast = ( ) => {
55
55
return (
56
56
< View flex bottom right paddingB-50 paddingR-20 pointerEvents = { 'box-none' } >
57
- < Button iconSource = { Assets . icons . demo . dashboard } color = { Colors . white } style = { { height : 50 , width : 50 } } />
57
+ < Button
58
+ iconSource = { Assets . icons . demo . dashboard }
59
+ color = { Colors . $backgroundDefault }
60
+ style = { { height : 50 , width : 50 } }
61
+ />
58
62
</ View >
59
63
) ;
60
64
} ;
61
65
62
66
renderBelowToast = ( ) => {
63
- return < Text > Attachment below toast</ Text > ;
67
+ return < Text $textDefault > Attachment below toast</ Text > ;
64
68
} ;
65
69
66
70
renderAttachment = ( ) => {
@@ -103,10 +107,10 @@ export default class ToastsScreen extends Component {
103
107
swipeable = { isSwipeable }
104
108
onDismiss = { this . toggleVisibility }
105
109
autoDismiss = { 3500 }
106
- // backgroundColor={Colors.green70 }
110
+ // backgroundColor={Colors.$backgroundSuccess }
107
111
// icon={Assets.icons.demo.add}
108
- // iconColor={Colors.green20 }
109
- // style={{borderWidth: 1, borderColor: Colors.grey30 }}
112
+ // iconColor={Colors.$backgroundSuccessHeavy }
113
+ // style={{borderWidth: 1, borderColor: Colors.$outlineNeutralMedium }}
110
114
// messageStyle={Typography.text80BO}
111
115
>
112
116
{ isCustomContent ? this . renderCustomContent ( ) : undefined }
@@ -131,11 +135,11 @@ export default class ToastsScreen extends Component {
131
135
render ( ) {
132
136
return (
133
137
< View flex padding-page >
134
- < Text h1 marginB-s4 >
138
+ < Text $textDefault h1 marginB-s4 >
135
139
Toast
136
140
</ Text >
137
141
138
- < View flex style = { styles . scrollViewContainer } >
142
+ < View flex >
139
143
< ScrollView contentContainerStyle = { styles . scrollView } >
140
144
{ renderMultipleSegmentOptions . call ( this , 'Toast Position' , 'toastPosition' , [
141
145
{ label : 'Bottom' , value : 'bottom' } ,
@@ -153,7 +157,7 @@ export default class ToastsScreen extends Component {
153
157
{ None : '' , Label : 'label' , Icon : 'icon' } ,
154
158
{ isRow : true } ) }
155
159
156
- < Text h3 marginV-s2 >
160
+ < Text $textDefault h3 marginV-s2 >
157
161
Presets
158
162
</ Text >
159
163
@@ -177,14 +181,5 @@ export default class ToastsScreen extends Component {
177
181
const styles = StyleSheet . create ( {
178
182
scrollView : {
179
183
paddingBottom : 80
180
- } ,
181
- color : {
182
- width : 30 ,
183
- height : 30 ,
184
- borderRadius : 15
185
- } ,
186
- selected : {
187
- borderWidth : 2 ,
188
- borderColor : Colors . grey10
189
184
}
190
185
} ) ;
0 commit comments