mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Switch TurboModules over to generated getName method
Summary: Apply the codegen improvements from D41615387 Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D41687534 fbshipit-source-id: 1d56f8fcb8d8b546291350785172a3b02abb0873
This commit is contained in:
1 parent
90538909f9
commit
c2a4654d37
35 files changed
+35
-264
No files matched your search
@@ -16,10 +16,8 @@ import java.io.File;
|
||||
|
||||
// This module is being called only by Java via the static method "captureHeap" that
|
||||
// requires it to already be initialized, thus we eagerly initialize this module
|
||||
@ReactModule(name = JSCHeapCapture.TAG, needsEagerInit = true)
|
||||
@ReactModule(name = NativeJSCHeapCaptureSpec.NAME, needsEagerInit = true)
|
||||
public class JSCHeapCapture extends NativeJSCHeapCaptureSpec {
|
||||
public static final String TAG = "JSCHeapCapture";
|
||||
|
||||
public interface HeapCapture extends JavaScriptModule {
|
||||
void captureHeap(String path);
|
||||
}
|
||||
@@ -79,9 +77,4 @@ public class JSCHeapCapture extends NativeJSCHeapCaptureSpec {
|
||||
mCaptureInProgress = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "JSCHeapCapture";
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ import com.facebook.react.common.SurfaceDelegate;
|
||||
import com.facebook.react.devsupport.interfaces.DevSupportManager;
|
||||
import com.facebook.react.module.annotations.ReactModule;
|
||||
|
||||
@ReactModule(name = LogBoxModule.NAME)
|
||||
@ReactModule(name = NativeLogBoxSpec.NAME)
|
||||
public class LogBoxModule extends NativeLogBoxSpec {
|
||||
|
||||
public static final String NAME = "LogBox";
|
||||
@@ -49,11 +49,6 @@ public class LogBoxModule extends NativeLogBoxSpec {
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void show() {
|
||||
if (!mSurfaceDelegate.isContentViewReady()) {
|
||||
|
||||
Reference in new issue
Block a user