Skip to content

how to set default view property's order? #8181

@fov42550564

Description

@fov42550564

when I create a custom view, it has several properties, how can I make sure these properties' order.

RCT_CUSTOM_VIEW_PROPERTY(props1, NSInteger, MyView) {
   doSomeThing1();
}
RCT_CUSTOM_VIEW_PROPERTY(props2, NSInteger, MyView) {
   doSomeThing2();
}

doSomeThing2 depend on doSomeThing1, so when I set default property I want doSomeThing1 exec before doSomeThing2, as follows:

<MyView props1={1} props2={2} />

Is there has some ways to solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions