mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-18 12:12:15 +08:00
Delay module creation on call for constants when module has none
Reviewed By: AaaChiuuu Differential Revision: D4810252 fbshipit-source-id: b2b98c3a8355dbb5775f254f25304a21f0bfee5b
This commit is contained in:
committed by
Facebook Github Bot
parent
678679e009
commit
78ab4ee893
@@ -23,7 +23,7 @@ import com.facebook.react.module.annotations.ReactModule;
|
||||
|
||||
// This module is being called only by Java via the static method "poke" that
|
||||
// requires it to alreay be initialized, thus we eagerly initialize this module
|
||||
@ReactModule(name = "JSCSamplingProfiler", needsEagerInit = true)
|
||||
@ReactModule(name = "JSCSamplingProfiler", needsEagerInit = true, hasConstants = false)
|
||||
public class JSCSamplingProfiler extends ReactContextBaseJavaModule {
|
||||
public interface SamplingProfiler extends JavaScriptModule {
|
||||
void poke(int token);
|
||||
|
||||
Reference in New Issue
Block a user