Giter Site home page Giter Site logo

React Native support about stitches HOT 6 CLOSED

stitchesjs avatar stitchesjs commented on July 28, 2024 7
React Native support

from stitches.

Comments (6)

peduarte avatar peduarte commented on July 28, 2024 11

@brodybits not sure how this affect React Native, but its on our roadmap to eventually have a RN-specific version.

from stitches.

matthova avatar matthova commented on July 28, 2024 9

I'm thinking this would be doable. We would need an alternative api that turns style declarations (with keys and all) into a style object. Then we feed the style object into a ReactNative Stylesheet declaration. We could even offer breakpoint handling if we offered an alternative window listener that tracked the window width and height.

I'd like to do some digging next weekend, but @christianalfoni if you know of a high-level outline of how we could get a style object without calling stylesheets, would love your input

from stitches.

christianalfoni avatar christianalfoni commented on July 28, 2024 4

@gsgualbano Thanks for the feedback! :)

Support for react native is a bit of a scoping issue really, cause we have to explicitly support it in the core. Styled-components only supports React, so it is naturally within their scope to also support react native.

There is currently no natural hook to extend the core functionality into like: @stitches/react-native, cause we have to change how the core works. Not outputting css classnames and producing stylesheets, but rather use the low level stylesheet API of react native.

So basically this would require a refactor of the core and make it more extensible.

Anyways, I am talking challenges. It is certainly possible, though will need to push it down the list a bit for now 😄

from stitches.

ecreeth avatar ecreeth commented on July 28, 2024 4

I would ❤️ stitches in react native!

from stitches.

feremabraz avatar feremabraz commented on July 28, 2024 4

I think this issue should stay open in order to track it.

from stitches.

brodybits avatar brodybits commented on July 28, 2024

Would DOM in core (PR #450) be redundant with React Native support?

from stitches.

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.