GithubHelp home page GithubHelp logo

kristerkari / css-to-react-native-transform Goto Github PK

View Code? Open in Web Editor NEW
95.0 95.0 20.0 1.15 MB

Turn valid CSS into React Native Stylesheet objects.

License: MIT License

JavaScript 100.00%
css css-parser react-native stylesheets transform

css-to-react-native-transform's People

Contributors

dependabot[bot] avatar greenkeeper[bot] avatar jhen0409 avatar kristerkari avatar taoqf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

css-to-react-native-transform's Issues

Add experimental support for CSS media queries

.container {
  background-color: #f00;
}

@media (orientation: landscape) {
  .container {
    background-color: #00f;
  }
}

↓ ↓ ↓ ↓ ↓ ↓

{
  container: {
    backgroundColor: "#f00",
  },
  "@media (orientation: landscape)": {
    container: {
      backgroundColor: "#00f",
    },
  },
}

An in-range update of lint-staged is breaking the build 🚨

The devDependency lint-staged was updated from 8.1.3 to 8.1.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

lint-staged is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/appveyor/branch: AppVeyor build failed (Details).
  • continuous-integration/travis-ci/push: The Travis CI build passed (Details).
  • coverage/coveralls: First build on greenkeeper/lint-staged-8.1.4 at 99.383% (Details).

Release Notes for v8.1.4

8.1.4 (2019-02-14)

Bug Fixes

  • Use lodash version with prototype pollution fix (#578) (0be88a0)
Commits

The new version differs by 4 commits.

  • 0be88a0 fix: Use lodash version with prototype pollution fix (#578)
  • 138fbc7 docs: Update Node version in the documentation (#579)
  • f9e5d7b refactor: Use micromatch ignore option instead of patterns with negations
  • 6e32188 chore: Update yarn.lock

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Feature: add support for parsing viewport units

Calculating styles dynamically makes it possible to add support for viewport units.

  • Viewport Width (vw) – A percentage of the full viewport width. 10vw will resolve to 10% of the current viewport width, or 48px on a phone that is 480px wide. The difference between % and vw is most similar to the difference between em and rem. A % length is relative to local context (containing element) width, while a vw length is relative to the full width of the browser window.
  • Viewport Height (vh) – A percentage of the full viewport height. 10vh will resolve to 10% of the current viewport height.
  • Viewport Minimum (vmin) – A percentage of the viewport width or height, whichever is smaller. 10vmin will resolve to 10% of the current viewport width in portrait orientations, and 10% of the viewport height on landscape orientations.
  • Viewport Maximum (vmax) – A percentage of the viewport width or height, whichever is larger. 10vmax will resolve to 10% of the current viewport height in portrait orientations, and 10% of the viewport width on landscape orientations. Sadly, and strangely, vmax units are not yet available on Internet Explorer or Edge.

The way that this would work is that the values would be parsed with units and a flag __viewportUnits: true would be enabled. Those values would then during runtime be compared agains React Native's viewport and transformed to pixel values.

More info:
https://css-tricks.com/fun-viewport-units/

An in-range update of css-to-react-native is breaking the build 🚨

The dependency css-to-react-native was updated from 2.2.2 to 2.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

css-to-react-native is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build is in progress (Details).
  • continuous-integration/appveyor/branch: AppVeyor build failed (Details).

Commits

The new version differs by 9 commits.

  • 837637b Merge pull request #101 from styled-components/v2.3.0
  • 0a6f83e v2.3.0
  • d11324e Merge pull request #99 from kopax/master
  • 5bb1433 ci(lock): update yarn.lock
  • c62fdfb build(lockfile): remove lockfile (they should be use userland), and added rules not to use package-lock.json in .npmrc
  • f45b72c fix(camelize): fix issues #95
  • 57c4105 Merge pull request #97 from styled-components/jacobp100-patch-2
  • f48a256 Update tests
  • 4e9cfec Set flex-basis to auto

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of babel7 is breaking the build 🚨

There have been updates to the babel7 monorepo:

    • The devDependency @babel/cli was updated from 7.4.3 to 7.4.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.

babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build passed (Details).
  • coverage/coveralls: First build on greenkeeper/monorepo.babel7-20190426211543 at 98.889% (Details).
  • continuous-integration/appveyor/branch: AppVeyor build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

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.