intellidev1991/react-native-image-slider-box

Is it possible to extend the props from Image like BlurRadis?

jimzqw opened this issue · 4 comments

Is it possible to blur the images using BlurRadis from react-native Image?
https://reactnative.dev/docs/image#blurradius

yes u can
<SliderBox images={images} blurRadius={num} />

I don't think that works for me

It works for me
check the code sliderBox.js line 94

 <ImageComponent
            style={[
              {
                width: '100%',
                height: sliderBoxHeight || 200,
                alignSelf: 'center',
              },
              ImageComponentStyle,
            ]}
            source={typeof item === 'string' ? {uri: item} : item}
            resizeMethod={resizeMethod || 'resize'}
            resizeMode={resizeMode || 'cover'}
            //onLoad={() => {}}
            //onLoadStart={() => {}}
            onLoadEnd={() => {
              let t = this.state.loading;
              t[index] = true;
              this.setState({loading: t});
            }}
            {...this.props} {/* this part destructure the props */}
          />