反应本机iPhone Plus文本行

时间:2018-02-13 12:32:36

标签: iphone react-native native-base

app中的所有多行文字标记都有一条线。仅在 iPhone Plus 上显示,而不是在iPad,标签,Android或任何其他设备上。

知道怎么解决吗?文本上的行与下图类似:

import React, {Component} from "react";
import {
  Image,
  View,
  StatusBar,
  TouchableOpacity,
  WebView,
  Dimensions,
  Linking,
  ScrollView,
  NetInfo,
  Alert
} from "react-native";
import {
  Container,
  Header,
  Title,
  Content,
  Text,
  H3,
  Button,
  Icon,
  Footer,
  FooterTab,
  Left,
  Right,
  Body
} from "native-base";

class Test extends Component {

  constructor() {
    super();
  }

  render() {
    return (
      <Container style={styles.container}>

<View>
<Text> test test test test test test </Text>
</View>

      </Container>
    );
  }
}

export default Test;

enter image description here

1 个答案:

答案 0 :(得分:0)

iPhone 7 Plus在文本组件背景上显示行,这是已经在github上报告的本地已知问题的反应。要解决此问题,请添加以下样式:

 backgroundColor: 'transparent',