kristerkari / react-native-sass-transformer

Use Sass to style your React Native apps.
MIT License
219 stars 19 forks source link

Return string instead of object for style if my scss is inside a shared project #12

Closed fstn closed 5 years ago

fstn commented 5 years ago

I get that: {component: "component_component__2MXAi", component__content: "component_component__content__3SGqz"} component : "component_component__2MXAi" component__content : "component_component__content__3SGqz"

instead of that:

{component_not_share: {…}, component_not_share__content: {…}} component_not_share : backgroundColor : (...) get backgroundColor : ƒ () set backgroundColor : ƒ () __proto__ : Object component_not_share__content : {}

To reproduce:

https://github.com/fstn/react_react-native_share

kristerkari commented 5 years ago

Thanks @fstn !

Can you clarify a bit what you mean? The CSS modules for web and CSS modules for React Native use completely different output from CSS to React, and your example with strings looks like the CSS modules for Web.

I wasn't able to run your example app because npm gives me an error when I try to install the modules.

kristerkari commented 5 years ago

Closing because of inactivity, let's reopen of something new comes up.