Comments (8)
I created a fork and modified the package to make it support className
.
https://github.com/0xGravityLabs/react-native-web
https://www.npmjs.com/package/@gravitylabs/react-native-web
Feel free to use it.
from react-native-css-modules.
How do I get this to work in my project? When I uninstall react-native-web and install your fork, expo says it can't find react-native-web. Any tips?
from react-native-css-modules.
I think that with RNW the only possibility is to use something like patch-package
to patch the library to bring className support back.
from react-native-css-modules.
I'm using a patch in the example app that brings back the support for react-native-web className
prop:
https://github.com/kristerkari/react-native-css-modules-with-typescript-example/blob/master/patches/react-native-web%2B0.12.3.patch
from react-native-css-modules.
I'm using a patch in the example app that brings back the support for react-native-web
className
prop: https://github.com/kristerkari/react-native-css-modules-with-typescript-example/blob/master/patches/react-native-web%2B0.12.3.patch
Hey bro, I was going through some cool css solutions and I still believe that a powerful css-in-file could have the best css feature coverage so that I can utilize expo to fully work on Web without losing any consistency across all platforms.
I appreciate your amazing work on the whole solution!
However, I got quite confused when adding the support to RNW. Is there any possibility that you could fork the RNW and the community can help you to maintain the className support and sync with the upstream?
from react-native-css-modules.
Is there any possibility that you could fork the RNW and the community can help you to maintain the className support and sync with the upstream?
I don't want to start maintaining a fork of RNW, so that's why I have not done it.
I created a fork and modified the package to make it support
className
.
Nice! Do you also have plans to keep on updating the fork with changes from RNW? Your fork could be added to the README if that's the case.
from react-native-css-modules.
Is there any possibility that you could fork the RNW and the community can help you to maintain the className support and sync with the upstream?
I don't want to start maintaining a fork of RNW, so that's why I have not done it.
I created a fork and modified the package to make it support
className
.Nice! Do you also have plans to keep on updating the fork with changes from RNW? Your fork could be added to the README if that's the case.
Yes! I think the most maintaining jobs to do are simply just syncing with the upstream as I didn't change much of the code. I'll try to keep it update-to-date at every major release of RNW.
from react-native-css-modules.
@JoeBoulton I have not tested, so I'm not sure if it works, but could that be possible with the alias
feature of Yarn or npm?
So if you tried to use react-native-web
as an alias for @gravitylabs/react-native-web
.
See: https://www.nieknijland.nl/blog/use-multiple-versions-of-an-npm-package-at-the-same-time
from react-native-css-modules.
Related Issues (20)
- Throw ERR_INVALID_ARG_TYPE(name, 'string', value) in win10 HOT 6
- Generate/update typings on save HOT 5
- Hot reloading breaks media queries HOT 6
- I can't get this working with latest expo version too HOT 2
- CSS is Not working on Web. HOT 12
- react native 0.61 fast refresh scss style has not changed the UI until reset cache in IOS app HOT 2
- @import problem HOT 2
- Support jsx value of 'react' for TypeScript HOT 2
- SCSS not loading on web HOT 3
- [bug] border-bottom doesn't work HOT 1
- CSS LESS is Not working
- Red lines under style attribute and className attribute
- [Feature] Cascading Styles HOT 3
- Crashes when property isn't valid HOT 1
- [Discussion] Node-sass is deprecated HOT 1
- String borderRadius cannot be cast to double (andriod only) HOT 3
- Adding support for gridLayout the awesome way to arrange the layout that is missing in react native HOT 1
- SCSS not working for web HOT 6
- Add alias path to scss file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-css-modules.