mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Split NativeImageStore into iOS and Android counterparts
Summary: Split the two specs, so that that we don't have to use Flow unions in the merged spec. Changelog: [Internal] Reviewed By: fkgozali Differential Revision: D23800841 fbshipit-source-id: 28b67578832ebd733bd080877e4ab763c013fded
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a7c026e667
commit
ef145adb9d
+2
-18
@@ -12,7 +12,7 @@ import android.net.Uri;
|
||||
import android.os.AsyncTask;
|
||||
import android.util.Base64;
|
||||
import android.util.Base64OutputStream;
|
||||
import com.facebook.fbreact.specs.NativeImageStoreSpec;
|
||||
import com.facebook.fbreact.specs.NativeImageStoreAndroidSpec;
|
||||
import com.facebook.react.bridge.Callback;
|
||||
import com.facebook.react.bridge.GuardedAsyncTask;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
@@ -25,7 +25,7 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
@ReactModule(name = ImageStoreManager.NAME)
|
||||
public class ImageStoreManager extends NativeImageStoreSpec {
|
||||
public class ImageStoreManager extends NativeImageStoreAndroidSpec {
|
||||
|
||||
public static final String NAME = "ImageStoreManager";
|
||||
private static final int BUFFER_SIZE = 8192;
|
||||
@@ -105,20 +105,4 @@ public class ImageStoreManager extends NativeImageStoreSpec {
|
||||
// shhh
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hasImageForTag(String uri, Callback callback) {
|
||||
// iOS only
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeImageForTag(String uri) {
|
||||
// iOS only
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addImageFromBase64(
|
||||
String base64ImageData, Callback successCallback, Callback errorCallback) {
|
||||
// iOS only
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user