We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
useEffect(() => { setImage( <ImageComponent {...props} style={[props.style, { width: scalableWidth, height: scalableHeight }]} /> ); }, [scalableHeight, scalableWidth]);
useEffect(() => { const {style, ...restProps} = props; setImage( <ImageComponent {...restProps} style={[style, { width: scalableWidth, height: scalableHeight }]} /> ); }, [scalableHeight, scalableWidth]);
The text was updated successfully, but these errors were encountered:
any update on this? i need to apply customStyles to image component like borderRadius.
Sorry, something went wrong.
@AlkanV You can use this solution which I used in my project.
run npm install patch-package
npm install patch-package
Open /node_modules/react-native-scalable-image/index.js
/node_modules/react-native-scalable-image/index.js
Replace code at Line 41 with below one
Now run this on your terminal/cmd/powershell npx patch-package react-native-scalable-image
npx patch-package react-native-scalable-image
after that, you will see a patches foldee is created. Add files inside this folder to git.
Then Open package.json and add this postscript inside the script section.
package.json
script
"postinstall": "patch-package",
This is a permanent fix. You will not need to do these changes again whenever you add or remove any dependency.
No branches or pull requests
should be refactored to
The text was updated successfully, but these errors were encountered: