Git Product home page Git Product logo

Comments (13)

gregberge avatar gregberge commented on May 24, 2024 3

Hello @rafaelmotta for now react-native is not supported.

I am interested by adding the support of React Native, the best way would be to expose @xstyled/styled-components/native.

I am a react-native user, if someone would want to work on it he is welcome!

from xstyled.

gregberge avatar gregberge commented on May 24, 2024 2

@bidah you are welcome to take it forward, I will not work on it.

from xstyled.

diegotsi avatar diegotsi commented on May 24, 2024 1

btw, the version 1.11.0works pretty well on react native, but in 1.11+ I'm getting this error:

Captura de Tela 2020-06-17 às 08 28 04

from xstyled.

Un3qual avatar Un3qual commented on May 24, 2024 1

@diegotsi did you ever find a solution to this?

from xstyled.

johnjoshuadablo avatar johnjoshuadablo commented on May 24, 2024

Screenshot_20190529-151212

+1
would this project be available for react native in the future ? I also get an error that says
"scStyled__default.div is not a function"

from xstyled.

rafaelmotta avatar rafaelmotta commented on May 24, 2024

@neoziro cool. So I will try to implement something in the next days.

from xstyled.

bidah avatar bidah commented on May 24, 2024

Hello @rafaelmotta for now react-native is not supported.

I am interested by adding the support of React Native, the best way would be to expose @xstyled/styled-components/native.

I am a react-native user, if someone would want to work on it he is welcome!

Well I would also like to add react native to the mix. Just wanna ask if you haven't moved forward with this @neoziro . If not I would be glad to give it a go.

from xstyled.

bidah avatar bidah commented on May 24, 2024

Hey!, updating about my intention of integration React Native I got a not so good update.
First of all I was unable to setup the DX for developing the addition to the library. Mainly I couldn't run locally the library on a react native project. I did tried out before this my own react native library on react native following in part this reference. (https://callstack.com/blog/adding-an-example-app-to-your-react-native-library/), but this time around I got stucked running the monorepo structure of xstyled. At some point the core library was not detected and couldn't make it run from that point. This without adding to the mix that linking does not work with metro bundler so it was not an option so I got out of options.

Any feedback around this issues is welcomed!

from xstyled.

bidah avatar bidah commented on May 24, 2024

So, I ended up using https://github.com/wix/wml to make it work. For anyone else wml add the src folder of each of the packages in your local copy of xstyled. e.g wml add ./xstyled/packages/core/src/ ./xstyled-fork/node_modules/@xstyled/core

from xstyled.

bidah avatar bidah commented on May 24, 2024

Hey @neoziro. So with wml linking in place I can now move around add breakpoints and checkout the implementation step by step... still would be great if you could give me some feedback about how you see the addition could go.

from xstyled.

diegotsi avatar diegotsi commented on May 24, 2024

@diegotsi did you ever find a solution to this?

we are using version 1.11.0 and it's working

from xstyled.

gregberge avatar gregberge commented on May 24, 2024

Still an issue in v2.

from xstyled.

gregberge avatar gregberge commented on May 24, 2024

To be clear, React Native compatibility will not happen any time soon. I close this issue, feel free to open another if you want to work on it.

from xstyled.

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.