Skip to content

Text when there is only one line on Android #26302

Description

@bashen1

React Native version:

React Native Environment Info:
    System:
    OS: macOS 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
    Memory: 123.38 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.5.0 - /usr/local/bin/node
    Yarn: 1.13.0 - /usr/local/bin/yarn
    npm: 6.10.3 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
    Android SDK:
      API Levels: 22, 23, 24, 25, 26, 27, 28
      Build Tools: 24.0.1, 25.0.2, 27.0.3, 28.0.2, 28.0.3, 29.0.0
  IDEs:
    Xcode: 10.3/10G8 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6 
    react-native: 0.60.5 => 0.60.5 
  npmGlobalPackages:
    react-native-cli: 2.0.1
    react-native-create-library: 3.1.2
    react-native-git-upgrade: 0.2.7

Steps To Reproduce

Just add punctuation or change the color of the font. Under Android, there will be a BUG in the current situation.

Describe what you expected to happen:

Snack, code example, screenshot, or link to a repository:
IMG_4133
Screenshot_2019-09-03-09-57-33-319_com manmanbuy bijia

<View style={{borderWidth: 1, borderColor: '#FF6600', marginVertical: 5}}>
    <Text style={{fontSize: 14, lineHeight: 20}}>
        <Text style={{color: '#617095'}}>我</Text>
        <Text style={{color: '#353535'}}>:&nbsp;的</Text>
    </Text>
</View>
<View style={{borderWidth: 1, borderColor: '#FF6600', marginVertical: 5}}>
    <Text style={{fontSize: 14, lineHeight: 20}}>
        <Text style={{color: '#617095'}}>我</Text>
        <Text style={{color: '#353535'}}>:&nbsp;的</Text>
    </Text>
</View>
<View style={{borderWidth: 1, borderColor: '#FF6600', marginVertical: 5}}>
    <Text style={{fontSize: 14, lineHeight: 20}}>
        <Text style={{color: '#617095'}}>我</Text>
        <Text style={{color: '#ED0000'}}>:&nbsp;的</Text>
    </Text>
</View>
<View style={{borderWidth: 1, borderColor: '#FF6600', marginVertical: 5}}>
    <Text style={{fontSize: 14, lineHeight: 20}}>
        <Text style={{color: '#617095'}}>我</Text>
        <Text style={{color: '#617095'}}>:&nbsp;的</Text>
    </Text>
</View>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPlatform: AndroidAndroid applications.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions