Skip to content

Allow passing className + style #2411

@natew

Description

@natew

Is there an existing request?

  • I have searched for this request

Describe the feature request

Right now you can either do $$css = true or pass styles. For Tamagui, we pass some styles inline and some as className. I could force convert all inline styles into classNames, at the expense of some extra logic.

Would this be amenable?

<View style={[
  { $$css: true, background: 'bg-classname' },
  { margin: 10 }
]} />

Allowing for passing in mixed className/style. It would match the output of styleq as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequires extension or creation of new React Native API

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions