Skip to content

Commit c39759b

Browse files
committed
remove check to always update isShakeToShowDevMenuEnabled
1 parent 58055d2 commit c39759b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/react-native/React/CoreModules/RCTDevSettings.mm

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,8 @@ - (id)settingForKey:(NSString *)key
265265

266266
- (void)setIsShakeGestureEnabled:(BOOL)isShakeGestureEnabled
267267
{
268-
if (isShakeGestureEnabled != _isShakeGestureEnabled) {
269-
_isShakeGestureEnabled = isShakeGestureEnabled;
270-
[self setIsShakeToShowDevMenuEnabled:isShakeGestureEnabled];
271-
}
268+
_isShakeGestureEnabled = isShakeGestureEnabled;
269+
[self setIsShakeToShowDevMenuEnabled:isShakeGestureEnabled];
272270
}
273271

274272
- (BOOL)isDeviceDebuggingAvailable

0 commit comments

Comments
 (0)