Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jimzqw opened this issue Jun 9, 2022 · 4 comments
Open

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

jimzqw opened this issue Jun 9, 2022 · 4 comments

Comments

@jimzqw
Copy link

jimzqw commented Jun 9, 2022

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

@nebaaaazzzz
Copy link

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

@jimzqw
Copy link
Author

jimzqw commented Jun 17, 2022

I don't think that works for me

@nebaaaazzzz
Copy link

nebaaaazzzz commented Jun 17, 2022

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

@J-odion
Copy link

J-odion commented Mar 17, 2023

blurRadius works fine. close this issue, please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants