Is it possible to extend the props from Image like BlurRadis?
jimzqw opened this issue · 4 comments
jimzqw commented
Is it possible to blur the images using BlurRadis from react-native Image?
https://reactnative.dev/docs/image#blurradius
nebaaaazzzz commented
yes u can
<SliderBox images={images} blurRadius={num} />
jimzqw commented
I don't think that works for me
nebaaaazzzz commented
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 */}
/>