Skip to content
New issue

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

[React] Add support for arrays with holes in style attribute #2196

Closed
wants to merge 1 commit into from

Commits on Sep 16, 2014

  1. [React] Add support for arrays with holes in style attribute

    Summary:
    See the style proposal on react-future: https://github.com/reactjs/react-future/blob/master/04%20-%20Layout/Inline%20Style%20Extension.md
    
    The goal is to enable writing CSS purely in JavaScript. We've been using this for a couple of internal projects and it's proven to be a very expressive tool.
    
    Note that this diff doesn't bring `StyleSheet.create` nor `StylePropType`. I'm keeping it simple by just allowing arbitrary arrays, objects and falsy values.
    
    Test Plan:
    
    ```
    grunt test
    ```
    
    Reviewers: jwalke zpao sema
    CC: tomocchino
    vjeux committed Sep 16, 2014
    Configuration menu
    Copy the full SHA
    8a56514 View commit details
    Browse the repository at this point in the history