react-native-image-slider-box icon indicating copy to clipboard operation
react-native-image-slider-box copied to clipboard

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

Open jimzqw opened this issue 3 years ago • 4 comments

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

jimzqw avatar Jun 09 '22 02:06 jimzqw

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

nebaaaazzzz avatar Jun 16 '22 21:06 nebaaaazzzz

I don't think that works for me

jimzqw avatar Jun 17 '22 00:06 jimzqw

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 */}
          />

nebaaaazzzz avatar Jun 17 '22 07:06 nebaaaazzzz

blurRadius works fine. close this issue, please

J-odion avatar Mar 17 '23 22:03 J-odion