瀏覽代碼

fix custom header component

yogevbd 6 年之前
父節點
當前提交
27a6bb653f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      lib/ios/RNNRootViewController.m

+ 1
- 1
lib/ios/RNNRootViewController.m 查看文件

139
 	if (!_customTitleView) {
139
 	if (!_customTitleView) {
140
 		if (self.options.topBar.title.component.name) {
140
 		if (self.options.topBar.title.component.name) {
141
 			_customTitleView = (RNNReactRootView*)[_creator createRootViewFromComponentOptions:self.options.topBar.title.component];
141
 			_customTitleView = (RNNReactRootView*)[_creator createRootViewFromComponentOptions:self.options.topBar.title.component];
142
-			_customTitleView.backgroundColor = UIColor.redColor;
142
+			_customTitleView.backgroundColor = UIColor.clearColor;
143
 			[_customTitleView setAlignment:self.options.topBar.title.component.alignment];
143
 			[_customTitleView setAlignment:self.options.topBar.title.component.alignment];
144
 			BOOL isCenter = [self.options.topBar.title.component.alignment isEqualToString:@"center"];
144
 			BOOL isCenter = [self.options.topBar.title.component.alignment isEqualToString:@"center"];
145
 			__weak RNNReactRootView *weakTitleView = _customTitleView;
145
 			__weak RNNReactRootView *weakTitleView = _customTitleView;