Skip to content

Opt out of default/reset styles #2793

@zacharykane

Description

@zacharykane

Is there an existing request?

  • I have searched for this request

Describe the feature request

Hello! I was looking for a way to opt out of the default styling that RNW applies to RN elements when they get converted to DOM elements. I've got a ton of Views everywhere, and once they become divs in the DOM, i see they get a class from an inline style block like this:

.css-view-175oi2r {
  align-items: stretch;
  background-color:: rgba(0,0,0,0);
  ...
}

This is a bit odd, because we're used to having basically nothing-especially on elements like a simple div. Could there be an option at some level, to opt out of or change the styles applied to the basic RN elements? We've had to counter these styles in many places already and while possible is adding more work on our part to achieve our designs and layouts.

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