Skip to content

[Discussion] Consider adhering to Node-style callbacks or Promises for async NativeModule methods #172

@ide

Description

@ide

The NativeModule methods that take callbacks currently expect to receive an error handler and a success handler. I believe it would be good if they adhered to a de facto convention.

Promises would probably be best since they work with existing promise libraries and ES7 async/await. Since NativeModule methods are async anyway this makes sense to me. Node-style callbacks ((err, result) => ...) are OK too and has similar benefits around being able to use existing helper libraries.

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