Skip to content

Stylesheet.create mystery #400

Description

@byteab

Introduction

Does Stylesheet.create({...}) has any performance benefit ?

Details

as it's stated in a comment in the Stylesheet.js, refer as id is not implemented yet.

It also allows sending the style only once through the bridge. All subsequent uses are going to refer an id (not implemented yet).

So is it mandatory to use Stylesheet.create and add an overhead?

Discussion points

if it's not mandatory, maybe we can mention it in the React Native Doc

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