Comments (3)
So I just tested with version 0.45 and there seems to be a core issue with the module's behavior after recent RN changes. I'll try to fix the issue within the week, however if the changes are more fundamental to the module's image layering strategy it will take significantly more time to fix.
from react-native-stars.
from react-native-stars.
The issue is that when using the module in default display mode (passing a value prop and not setting the opacity flag) the backingColor prop cannot be transparent. Otherwise the 'bar' that covers up the last star won't actually block out the underlying filled star to create the proper proportion. Apologies if this conflicts with your intended use of the component, but for now this is the hacky way the module is set up. Eventually I intend to introduce a more legitimate way of processing partial images using svgs so this will no longer be a constraint.
Here's the reference to this constraint in the readme props table:
" backingColor | (in Display Mode) color behind the component (cannot be transparent) "
from react-native-stars.
Related Issues (18)
- Image component can't contain childrens
- Support for Expo icons HOT 4
- Rating mode doesn't handle arbitrary fractional values correctly HOT 8
- How to get event when start value change HOT 1
- Not able set the value dynamically
- Half star not working for display HOT 8
- display mode allows editing
- on Android wrong number of starts are displayed HOT 2
- 默认数量,无法设置? HOT 3
- how make star readonly HOT 3
- Cannot Set Value for display props HOT 3
- Partial value is not rendered correctly
- Unable to make 0 ratings HOT 3
- Fix published npm version HOT 2
- stars can't show stars in iOS 14 HOT 5
- Display Won't work with zero value
- StarRating won't change size 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 react-native-stars.