Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Sep 16, 2019
1 parent 50cf797 commit d89fdfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion React/Modules/RCTDevSettings.mm
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ - (BOOL)isHotLoadingEnabled

RCT_EXPORT_METHOD(addMenuItem:(NSString *)title)
{
__weak typeof(self) weakSelf = self;
__weak __typeof(self) weakSelf = self;
[self.bridge.devMenu addItem:[RCTDevMenuItem buttonItemWithTitle:title handler:^{
[weakSelf sendEventWithName:@"didPressMenuItem" body:@{@"title": title}];
}]];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void toggleElementInspector() {
}

@ReactMethod
public void addMenuItem(String title) {
public void addMenuItem(final String title) {
mDevSupportManager.addCustomDevOption(title, new DevOptionHandler() {
@Override
public void onOptionSelected() {
Expand Down

0 comments on commit d89fdfe

Please sign in to comment.