@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
import React from 'react' ;
4
4
import { StyleSheet } from 'react-native' ;
5
5
import { View as AnimatableView , Text as AnimatableText } from 'react-native-animatable' ;
6
- // import {BlurView} from '@react-native-community/blur';
6
+ import { BlurView } from '@react-native-community/blur' ;
7
7
import { BaseComponent } from '../../commons' ;
8
8
import { AnimatableManager , ThemeManager , Colors , Typography , BorderRadiuses } from '../../style' ;
9
9
import Assets from '../../assets' ;
@@ -282,13 +282,13 @@ export default class Toast extends BaseComponent {
282
282
283
283
// This weird layout should support iphoneX safe area
284
284
render ( ) {
285
- const { backgroundColor, actions, /* enableBlur, */ testID, zIndex, renderContent} = this . getThemeProps ( ) ;
285
+ const { backgroundColor, actions, enableBlur, testID, zIndex, renderContent} = this . getThemeProps ( ) ;
286
286
const { animationConfig} = this . state ;
287
287
const hasOneAction = _ . size ( actions ) === 1 ;
288
288
const hasTwoActions = _ . size ( actions ) === 2 ;
289
289
const positionStyle = this . getPositionStyle ( ) ;
290
290
const height = getHeight ( this . props ) ;
291
- // const blurOptions = this.getBlurOptions();
291
+ const blurOptions = this . getBlurOptions ( ) ;
292
292
293
293
const shouldShowToast = this . shouldShowToast ( ) ;
294
294
if ( ! shouldShowToast ) {
@@ -308,7 +308,7 @@ export default class Toast extends BaseComponent {
308
308
] }
309
309
{ ...animationConfig }
310
310
>
311
- { /* { enableBlur && <BlurView style={this.styles.blurView} {...blurOptions}/> } */ }
311
+ { enableBlur && < BlurView style = { this . styles . blurView } { ...blurOptions } /> }
312
312
{ this . renderContent ( ) }
313
313
</ AnimatableView >
314
314
</ View >
0 commit comments