mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-06 09:13:27 +08:00
Make CameraRoll work with Promises
Summary: public This is the first module moving to the new model of working with Promises. We now warn on uses of callback version. At some point we will remove that. Reviewed By: davidaurelio Differential Revision: D2849811 fb-gh-sync-id: 8a31924cc2b438efc58f3ad22d5f27c273563472
This commit is contained in:
committed by
facebook-github-bot-2
parent
34d5fa2695
commit
9baff8f437
@@ -9,6 +9,8 @@
|
||||
|
||||
package com.facebook.react.bridge;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* Interface that represents a JavaScript Promise which can be passed to the native module as a
|
||||
* method parameter.
|
||||
@@ -22,5 +24,5 @@ public interface Promise {
|
||||
@Deprecated
|
||||
void reject(String reason);
|
||||
void reject(String code, Throwable extra);
|
||||
void reject(String code, String reason, Throwable extra);
|
||||
void reject(String code, String reason, @Nullable Throwable extra);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user