Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS LESS is Not working #38

Open
ser0ja opened this issue Jan 22, 2021 · 0 comments
Open

CSS LESS is Not working #38

ser0ja opened this issue Jan 22, 2021 · 0 comments

Comments

@ser0ja
Copy link

ser0ja commented Jan 22, 2021

"expo": "40.0.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz"

I checked each step according to the proposed instructions (https://github.com/kristerkari/react-native-css-modules/blob/master/docs/setup-less.md), but not working.
Not for web, not for android

metro.config.js

const { getDefaultConfig } = require('@expo/metro-config')
module.exports = (async () => {
    const { resolver: { sourceExts } } = await getDefaultConfig(__dirname)
    return {
        transformer: {
            babelTransformerPath: require.resolve('react-native-less-transformer')
        },
        resolver: {
            sourceExts: [...sourceExts, 'less']
        }
    }
})()
import theme from './layout.less'
<View className={theme.layout}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant