GithubHelp home page GithubHelp logo

Comments (2)

xymostech avatar xymostech commented on May 16, 2024

It is not currently possible to do that in a supported way. However, if you need it to work and are okay with hacks, you can do something like:

var styles = StyleSheet.create({
    myClass: {
        cursor: "-moz-grab; cursor: -webkit-grab; cursor: grab",
    },
});

It turns out that Aphrodite automatically prefixes cursor: grab though, so you can just do

var styles = StyleSheet.create({
    myClass: {
        cursor: "grab",
    },
});

and it'll produce the CSS you wanted.

from aphrodite.

jlfwong avatar jlfwong commented on May 16, 2024

We should mention that solution isn't guaranteed to work in future versions, but it will indeed work with the current solution. It's an accidental consequent of the implementation, not an intention of the design.

In this particular case, it looks like something that perhaps belongs in autoprefixing code, which we do with our fork of inline-style-prefixer: https://github.com/Khan/inline-style-prefixer.

We have similar need for multiple values for flexbox, which is solved in that repository.

from aphrodite.

Related Issues (20)

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.