Skip to content

Commit 17f8e58

Browse files
gaearonfacebook-github-bot
authored andcommitted
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
1 parent fbd5dee commit 17f8e58

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

React/Modules/RCTDevSettings.mm

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ - (instancetype)init
131131
// default behavior is to use NSUserDefaults
132132
NSDictionary *defaultValues = @{
133133
kRCTDevSettingShakeToShowDevMenu: @YES,
134+
kRCTDevSettingHotLoadingEnabled: @YES,
134135
};
135136
RCTDevSettingsUserDefaultsDataSource *dataSource = [[RCTDevSettingsUserDefaultsDataSource alloc] initWithDefaultValues:defaultValues];
136137
return [self initWithDataSource:dataSource];

ReactAndroid/src/main/java/com/facebook/react/devsupport/DevInternalSettings.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, Strin
107107
}
108108

109109
public boolean isHotModuleReplacementEnabled() {
110-
return mPreferences.getBoolean(PREFS_HOT_MODULE_REPLACEMENT_KEY, false);
110+
return mPreferences.getBoolean(PREFS_HOT_MODULE_REPLACEMENT_KEY, true);
111111
}
112112

113113
public void setHotModuleReplacementEnabled(boolean enabled) {

0 commit comments

Comments
 (0)