Add fastRefresh to NativeDevSettings

Summary: This diff adds a method to call whenever a fast refresh happens. Right now this is only useful for reporting.

Reviewed By: cpojer

Differential Revision: D17528033

fbshipit-source-id: 17e82abe7a3e2bab6829de5adecda853fe5335c5
This commit is contained in:
Rick Hanlon
2019-09-30 07:03:51 -07:00
committed by Facebook Github Bot
parent 4cea628e0c
commit 2d95668aa8
8 changed files with 41 additions and 0 deletions
@@ -57,6 +57,11 @@ public class DevSettingsModule extends ReactContextBaseJavaModule {
this.reload();
}
@ReactMethod
public void onFastRefresh() {
// noop
}
@ReactMethod
public void setHotLoadingEnabled(boolean isHotLoadingEnabled) {
mDevSupportManager.setHotModuleReplacementEnabled(isHotLoadingEnabled);