Giter VIP home page Giter VIP logo

Comments (3)

4umo avatar 4umo commented on June 3, 2024 1

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.

4umo avatar 4umo commented on June 3, 2024

from react-native-stars.

4umo avatar 4umo commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.