index.ios.js modified to use presentViewControllerAnimatedCompletion and dismissViewControllerAnimatedCompletion so as to avoid a timing error wherein control was returned before the viewController had been dismissed, thus causing an error if the calling code attempted to display a modal dialog. (issue #75). Also changed frame.topmost()invocation to remove deprecated API warning.
index.android.js modified to correct problem where the activityResult handler was being invoked multiple times, once for each time getContact had been called. Fix is to remove the activityResult listener via appModule.android.off("activityResult", ...) which in turn required putting the activityResult handler into its own function.
index.ios.js modified to use presentViewControllerAnimatedCompletion and dismissViewControllerAnimatedCompletion so as to avoid a timing error wherein control was returned before the viewController had been dismissed, thus causing an error if the calling code attempted to display a modal dialog. (issue #75). Also changed
frame.topmost()
invocation to remove deprecated API warning.index.android.js modified to correct problem where the activityResult handler was being invoked multiple times, once for each time getContact had been called. Fix is to remove the activityResult listener via
appModule.android.off("activityResult", ...)
which in turn required putting the activityResult handler into its own function.