mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Make RCTStatusBarManager TurboModule-compatible
Summary: See title. Changelog: [iOS][Added] - Make RCTStatusBarManager TurboModule-compatible Reviewed By: shergin Differential Revision: D18130374 fbshipit-source-id: 3ec226bcff17e47ffd9eba05e32c1eb68d6135b2
This commit is contained in:
committed by
Facebook Github Bot
parent
a257083d2b
commit
dc12676e3a
+3
-2
@@ -55,10 +55,11 @@ public abstract class NativeStatusBarManagerIOSSpec extends ReactContextBaseJava
|
||||
Map<String, Object> constants = getTypedExportedConstants();
|
||||
if (ReactBuildConfig.DEBUG || ReactBuildConfig.IS_INTERNAL_BUILD) {
|
||||
Set<String> obligatoryFlowConstants = new HashSet<>(Arrays.asList(
|
||||
"DEFAULT_BACKGROUND_COLOR",
|
||||
"HEIGHT"
|
||||
));
|
||||
Set<String> optionalFlowConstants = new HashSet<>();
|
||||
Set<String> optionalFlowConstants = new HashSet<>(Arrays.asList(
|
||||
"DEFAULT_BACKGROUND_COLOR"
|
||||
));
|
||||
Set<String> undeclaredConstants = new HashSet<>(constants.keySet());
|
||||
undeclaredConstants.removeAll(obligatoryFlowConstants);
|
||||
undeclaredConstants.removeAll(optionalFlowConstants);
|
||||
|
||||
Reference in New Issue
Block a user