Skip to content

Instantly share code, notes, and snippets.

@ryanlntn
Last active April 16, 2016 19:30
Show Gist options
  • Save ryanlntn/85743cd4bc450320fc0bfb7bbfafca30 to your computer and use it in GitHub Desktop.
Save ryanlntn/85743cd4bc450320fc0bfb7bbfafca30 to your computer and use it in GitHub Desktop.
ImagePickerModule.java
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