ReactNative开发中如何去掉iOS状态栏的"Loading from..."
来源:互联网 发布:laravel nginx 编辑:程序博客网 时间:2024/04/30 21:18
学习RN初级,在加载的时候总是会在ios app屏幕上方出现绿色的条,显示loading from和进度,只要屏蔽掉如下的代码就可以了。
在RCTDevLoadingView.m中屏蔽
RCT_EXPORT_METHOD(showMessage:(NSString *)message color:(UIColor *)color backgroundColor:(UIColor *)backgroundColor)
{
if (!isEnabled) {
return;
}
// dispatch_async(dispatch_get_main_queue(), ^{
// self->_showDate = [NSDate date];
// if (!self->_window && !RCTRunningInTestEnvironment()) {
// CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
// self->_window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, screenWidth, 22)];
//#if TARGET_OS_TV
// self->_window.windowLevel = UIWindowLevelNormal + 1;
//#else
// self->_window.windowLevel = UIWindowLevelStatusBar + 1;
//#endif
// // set a root VC so rotation is supported
// self->_window.rootViewController = [UIViewController new];
//
// self->_label = [[UILabel alloc] initWithFrame:self->_window.bounds];
// self->_label.font = [UIFont systemFontOfSize:12.0];
// self->_label.textAlignment = NSTextAlignmentCenter;
//
// [self->_window addSubview:self->_label];
// }
//
// self->_label.text = message;
// self->_label.textColor = color;
// self->_window.backgroundColor = backgroundColor;
// self->_window.hidden = NO;
// });
}
- ReactNative开发中如何去掉iOS状态栏的"Loading from..."
- ReactNative开发中如何去掉iOS状态栏的"Loading from..."
- ReactNative 开发中如何去掉iOS状态栏的"Loading from..."
- android tablet开发, 如何去掉底部的状态栏
- Android开发-如何去掉一个页面的标题栏和状态栏
- IOS设备中去掉屏幕上的status bar//状态栏
- ReactNative开发如何加载iOS程序包里的文件
- iOS开发如何去掉某种类型的警告
- iOS开发中去掉UITableView中多余的分割线
- 闲谈iOS开发的状态栏
- iOS中嵌入ReactNative
- iOS开发之如何隐藏系统状态栏
- IOS工程中如何去掉第三方的警告
- IOS工程中如何去掉第三方的警告
- iOS开发中更改手机状态栏和隐藏手机状态栏的方法
- 去掉IOS开发过程中L not found的警告
- iOS开发笔记--去掉tableview中section的headerview粘性
- iOS开发笔记--去掉tableview中section的headerview粘性
- 从零开始用 Flask 搭建一个网站(一)
- SQL实现定时执行计划(---SQL Server2012)
- 数据存储单位从B/KB/MB/GB到NB/DB,如何转化?全球数据量有多少
- RxBus在rxjava2.0 的使用
- EditText实现分割输入内容
- ReactNative开发中如何去掉iOS状态栏的"Loading from..."
- JAVA设计模式之工厂模式(简单工厂模式+工厂方法模式)
- LeetCode 21. Merge Two Sorted Lists
- Wkhtmltopdf的安装与使用
- 好雨云帮开发者大赛第二期:「Beego」
- [解决] tomcat 8.5 gzip不生效
- Android bindService (7.1) sequence flow
- Android仿微信朋友圈发动态功能(相册图片多选)
- 【Java之网络编程】1.网络基础