Skip to content

Question: What are the possible interfaces expected for processCss hook and how to use css-modules-require-hook to generate what I want? #84

Open
@daniloster

Description

@daniloster

Hi all,

I am trying to create a processor to transpile css/scss to ReactNative.StyleSheet objects. What I am not understanding is what is expected from a processCss function. Maybe I should use another phase to do what I want. I don't know indeed and that is why I would be pleased to hear from anyone some advice about.

Given the import myClasses from './my-classes.css'; When/where should I interfere to parse the last step before assigning some value to the variable myClasses? I guess, it is the right moment to get my css (string) convert into object and use the ReactNative.StyleSheet.create to generate what I want to consume from myClasses.

Thank you so much in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions