Last active
April 16, 2016 19:30
-
-
Save ryanlntn/85743cd4bc450320fc0bfb7bbfafca30 to your computer and use it in GitHub Desktop.
ImagePickerModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.facebook.react.bridge.Callback; | |
import com.facebook.react.bridge.ReadableMap; | |
public class ImagePickerModule extends ReactContextBaseJavaModule { | |
@ReactMethod | |
public void openSelectDialog(ReadableMap config, Callback successCallback, Callback cancelCallback) { | |
Activity currentActivity = getCurrentActivity(); | |
if (currentActivity == null) { | |
cancelCallback.invoke("Activity doesn't exist"); | |
return; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment