Skip to content

Commit fe5ac2c

Browse files
RSNarafacebook-github-bot
authored andcommitted
Fix method signature
Summary: All `NSNumber *` arguments of NativeModules need to be marked with `__nonnull`. Otherwise, when TurboModules are disabled, we run into a RedBox. Changelog: [iOS][Fixed] - Fix RCTDevLoadingView RedBox on Reload Reviewed By: PeteTheHeat Differential Revision: D20292188 fbshipit-source-id: a8a5d0b2070575d7728b6308b129196242671fe6
1 parent 83c76c2 commit fe5ac2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

React/CoreModules/RCTDevLoadingView.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ -(void)showMessage:(NSString *)message color:(UIColor *)color backgroundColor:(U
113113
});
114114
}
115115

116-
RCT_EXPORT_METHOD(showMessage:(NSString *)message withColor:(NSNumber *)color withBackgroundColor:(NSNumber *)backgroundColor)
116+
RCT_EXPORT_METHOD(showMessage:(NSString *)message withColor:(NSNumber * __nonnull)color withBackgroundColor:(NSNumber * __nonnull)backgroundColor)
117117
{
118118
[self showMessage:message color:[RCTConvert UIColor:color] backgroundColor:[RCTConvert UIColor:backgroundColor]];
119119
}

0 commit comments

Comments
 (0)