Skip to content

Why synthetic state on TouchableHighlight instead of instance variable? #105

@ide

Description

@ide

As I read it, synthetic state is a way to cache a transformation of the props since the state is expected to change more frequently than the props (i.e. most re-renders will be due to state changes, not prop changes). Just curious if there was a reason the data was stored in the component state instead of an instance variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions