Comments (10)
@nickvgn thanks for filing this, I'll see if I can get it fixed later this week!
from faster-image.
In the repo
example
, you demonstrate circular images....if the Platform is androidstyle.image is
borderRadius: (size - 16) / 2
and the RCTView prop is
borderRadius: size * 2
is there a reason that conventional radius calculations of CSS can't be used consistently? it's cumbersome to remember to come up with and use different calculations, especially based on Platform.
It's because Android has some complexity when round corners. I'm keeping this issue open & will make it consistent next PR.
from faster-image.
@nickvgn resizeMode is fixed in the latest version!
from faster-image.
Setting overflow: 'hidden'
in styles worked for me.
from faster-image.
+1 for resize mode not working. Makes this one useless for me for now, sadly :-(
from faster-image.
In the repo example
, you demonstrate circular images....if the Platform is android
style.image is borderRadius: (size - 16) / 2
and the RCTView prop is borderRadius: size * 2
is there a reason that conventional radius calculations of CSS can't be used consistently? it's cumbersome to remember to come up with and use different calculations, especially based on Platform.
from faster-image.
thank you!
from faster-image.
i think the simple solution would be to apply overflow:hidden
on the image styles or the container styles (or both)
from faster-image.
Related Issues (20)
- Comparison with Expo Image and FastImage? HOT 3
- feature request: tint
- android: Error while updating property 'source' of a view manage by: FasterImageView null null HOT 1
- accessibility support HOT 2
- Aspect Ratio HOT 1
- GIF support HOT 2
- Image not loading on android (only production vesrion) HOT 1
- [Question] FlashList recycling support? HOT 2
- Add headers to image request HOT 2
- Memory spike with 100+ huge images. HOT 5
- Question/border radius: what is more recommended – use style or source? HOT 3
- Does it support for react native web? HOT 1
- How to load local images? HOT 1
- [FEATURE] support for react-native-windows and react-native-macos HOT 1
- Cache not used on Android HOT 6
- Local png file? HOT 1
- Clear cache HOT 1
- Setting border radius just on top corners HOT 2
- `resizeMode` is having no effect (iOS) and image is stretched by default. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faster-image.