wix-react-native-navigation v2 statusBar不起作用

时间:2018-06-23 11:42:30

标签: react-native react-native-navigation wix-react-native-navigation react-native-navigation-v2

我正在尝试$path_root = "../"; include($path_root . 'ssi/recaptchakey.php'); $sender_name = stripslashes($_POST["sender_name"]); $sender_email = stripslashes($_POST["sender_email"]); $sender_message = stripslashes($_POST["sender_message"]); $response = $_POST["g-recaptcha-response"]; $url = 'https://www.google.com/recaptcha/api/siteverify'; $data = array( 'secret' => writeRecaptchaSecret(), 'response' => $_POST["g-recaptcha-response"] ); $options = array( 'http' => array ( 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $verify = file_get_contents($url, false, $context); $captcha_success=json_decode($verify); if ($captcha_success->success==false) { echo "<p>You are a bot! Go away!</p>"; } else if ($captcha_success->success==true) { mail ( "myemail@gmail.com", "VGKD Bindings Submission", "NAME:\n" . $_POST['email_1'] . "\n\n" . "EMAIL:\n" . $_POST['email_2'] . "\n\n" . "MESSAGE:\n" . $_POST['email_3'] . "\n\n" . "GAME TITLE:\n" . $_POST['email_4'] . "\n\n" . "LEGENDS:\n" . $_POST['email_5'] . "\n\n" . "COMMANDS:\n" . $_POST['email_6'] . "\n\n" . "BINDINGS:\n" . $_POST['email_7'] . "\n\n" ); echo "<p>Thank you for your submission!</p>"; } ,但无法更改状态栏颜色。

react-native-navigation V2

但这仅在操作栏上起作用,而在状态栏上没有任何反应,它保持白色。我正在使用RN v = 0.54.2和react-native-navigation = 2.0.2373

更新

更新您的Navigation.setDefaultOptions({ statusBar: { visible: true, style: "dark", backgroundColor: "red" }, topBar: { background: { color: COLOR.primaryColor }, title: { text: "ExampleWix", fontSize: 22, color: "white" }, visible: true } }); ,您将能够更改RNN的颜色

1 个答案:

答案 0 :(得分:1)

有点晚了,但是对于来自Google的人来说

如果您使用的是iOS。确保将Info.plist中的View controller-based status bar appearanceUIViewControllerBasedStatusBarAppearance设置为YES