Skip to content

Commit

Permalink
iOS TM: RCTEnableJSINativeModule => RCTEnableTurboModule
Browse files Browse the repository at this point in the history
Summary: Leftover name change from previous codemod.

Reviewed By: shergin

Differential Revision: D13117615

fbshipit-source-id: 2584a2a90d3db6ed9a9e9cb8727c51da34f0927c
  • Loading branch information
fkgozali authored and facebook-github-bot committed Nov 20, 2018
1 parent 30c54ca commit 12e37f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion React/Base/RCTBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ RCT_EXTERN NSString *RCTBridgeModuleNameForClass(Class bridgeModuleClass);
* Check/set if JSI-bound NativeModule is enabled. By default it's off.
*/
RCT_EXTERN BOOL RCTTurboModuleEnabled(void);
RCT_EXTERN void RCTEnableJSINativeModule(BOOL enabled);
RCT_EXTERN void RCTEnableTurboModule(BOOL enabled);

/**
* Async batched bridge used to communicate with the JavaScript application.
Expand Down
8 changes: 4 additions & 4 deletions React/Base/RCTBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ void RCTRegisterModule(Class moduleClass)
return RCTDropReactPrefixes(name);
}

static BOOL jsiNativeModuleEnabled = NO;
static BOOL turboModuleEnabled = NO;
BOOL RCTTurboModuleEnabled(void)
{
return jsiNativeModuleEnabled;
return turboModuleEnabled;
}

void RCTEnableJSINativeModule(BOOL enabled) {
jsiNativeModuleEnabled = enabled;
void RCTEnableTurboModule(BOOL enabled) {
turboModuleEnabled = enabled;
}

#if RCT_DEBUG
Expand Down

0 comments on commit 12e37f5

Please sign in to comment.