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:
Ramanpreet Nara
2019-11-01 11:54:44 -07:00
committed by Facebook Github Bot
parent a257083d2b
commit dc12676e3a
8 changed files with 52 additions and 12 deletions
@@ -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);