mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Enable by default
Summary: This enables Fast Refresh by default. More concretely: * For clean installs, it's enabled by default. (You can opt out at any time via the dev menu.) * For updated DEV apps (on device or simulator), it flips from disabled to enabled **but only if you never touched the setting before**. * If you previously explicitly enabled and/or later disabled it, we keep your previous setting. Reviewed By: yungsters Differential Revision: D16442656 fbshipit-source-id: 1bfe0bf4bcf2830284f9c757fbfacc10db92acb4
This commit is contained in:
committed by
Facebook Github Bot
parent
fbd5dee1e4
commit
17f8e5810f
@@ -107,7 +107,7 @@ public class DevInternalSettings
|
||||
}
|
||||
|
||||
public boolean isHotModuleReplacementEnabled() {
|
||||
return mPreferences.getBoolean(PREFS_HOT_MODULE_REPLACEMENT_KEY, false);
|
||||
return mPreferences.getBoolean(PREFS_HOT_MODULE_REPLACEMENT_KEY, true);
|
||||
}
|
||||
|
||||
public void setHotModuleReplacementEnabled(boolean enabled) {
|
||||
|
||||
Reference in New Issue
Block a user