Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING CHANGE: Use promise instead of callback #29

Merged
merged 4 commits into from
Jun 10, 2019

Conversation

guhungry
Copy link
Contributor

@guhungry guhungry commented Jun 5, 2019

Summary

Currently the api use callback pattern instead of easier to use Promise api.

Test Plan

What's required for testing (prerequisites)?

None

What are the steps to reproduce (after prerequisites)?

Test with example app for both Android and iOS

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • I added the documentation in README.md
  • I mentioned this change in CHANGELOG.md
  • I updated the typed files (TS and Flow)
  • I added a sample use of the API in the example project (example/App.js)

@guhungry guhungry force-pushed the use-promise-instead-of-callback branch from 1977b20 to 97c73cb Compare June 5, 2019 10:46
@guhungry guhungry marked this pull request as ready for review June 5, 2019 10:48
example/src/App.js Outdated Show resolved Hide resolved
@guhungry guhungry force-pushed the use-promise-instead-of-callback branch from 97c73cb to d5ce1a1 Compare June 5, 2019 14:02
@Trancever
Copy link
Contributor

@guhungry Could you fix eslint errors (you can check it by running yarn test:eslint)? Module works fine with Promises so once there are no errors we can merge it! thanks!

@guhungry guhungry force-pushed the use-promise-instead-of-callback branch from d5ce1a1 to edb9056 Compare June 10, 2019 07:41
@guhungry
Copy link
Contributor Author

@Trancever Done with cherry pick and rebase to master.

@Trancever Trancever merged commit ef73888 into callstack:master Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants