فهرست منبع

Status bar text is barely visible on iOS devices

Alex Trofimov 7 سال پیش
والد
کامیت
fc830074de
2فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 2 0
      App.js
  2. 3 2
      ios/una.xcodeproj/project.pbxproj

+ 2 - 0
App.js

@@ -16,6 +16,7 @@ import {
     BackHandler,
     ActivityIndicator,
     Dimensions,
+    StatusBar,
 } from 'react-native';
 import { 
     View,
@@ -299,6 +300,7 @@ export default class App extends Component<Props> {
     }
     
     render() {
+        StatusBar.setBarStyle(Platform.OS === 'android' ? 'light-content' : 'dark-content', false);
         return (
             <Container>
             <Drawer ref="drawer" content={this.renderDrawer()} onClose={this.drawerClose.bind(this)}>

+ 3 - 2
ios/una.xcodeproj/project.pbxproj

@@ -5,6 +5,7 @@
 	};
 	objectVersion = 46;
 	objects = {
+
 /* Begin PBXBuildFile section */
 		00E356F31AD99517003FC87E /* unaTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* unaTests.m */; };
 		1188E97DCD0440B4B61FB3AB /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 569F7E359363411296CFF2D1 /* Entypo.ttf */; };
@@ -716,7 +717,7 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "";
 				CODE_SIGN_ENTITLEMENTS = una/una.entitlements;
-				CURRENT_PROJECT_VERSION = 1300;
+				CURRENT_PROJECT_VERSION = 1302;
 				DEAD_CODE_STRIPPING = NO;
 				DEVELOPMENT_TEAM = 235MTP3MJ2;
 				INFOPLIST_FILE = una/Info.plist;
@@ -741,7 +742,7 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "";
 				CODE_SIGN_ENTITLEMENTS = una/una.entitlements;
-				CURRENT_PROJECT_VERSION = 1300;
+				CURRENT_PROJECT_VERSION = 1302;
 				DEVELOPMENT_TEAM = 235MTP3MJ2;
 				INFOPLIST_FILE = una/Info.plist;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";