Skip to content

Text Cut Off on Android 13 #36992

@im-minsung

Description

@im-minsung

Description

React Native Version

0.71.4

Output of npx react-native info

System:
OS: macOS 12.6
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 25.00 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.17.1 - ~/.nvm/versions/node/v16.17.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.17.1/bin/yarn
npm: 8.15.0 - ~/.nvm/versions/node/v16.17.1/bin/npm
Watchman: 2022.09.26.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9014738
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.4 => 0.71.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Android SDK now using version is 33.

Steps to reproduce

Screenshot

Android 12 works fine.
However, this phenomenon occurs from Android 13.

The height doesn't cut when the line is changed.

If you enter special characters or certain languages on a single line, the height is cut off.

For example, special characters are cut off in height using ༒ or ༺.

Special Character Site url: https://unicodes.jessetane.com/%E0%BC%92

I tried to fix the height with text onlayout, but it didn't work out.

Snack, code example, screenshot, or link to a repository

import React, { memo } from "react"
import { Text, View } from "react-native"

const AppContainer = memo(() => {
    return (
        <View style={{ flex: 1, justifyContent: "center" }}>
            <Text>ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ</Text>
            <Text>{"\n"}</Text>
            <Text>かお 얼굴 さる 원숭이 たこ</Text>
            <Text>{"\n"}</Text>
            <Text>かお 얼굴 さる 원숭이 たこ༒</Text>
            <Text>{"\n"}</Text>
            <Text>かお 얼굴 さる 원숭이 たこ༺</Text>
            <Text>{"\n"}</Text>
            <Text>かお 얼굴 さる 원숭이 たこかお 얼굴 さる 원숭이 たこ かお 얼굴 ༒</Text>
        </View>
    )
})

export default AppContainer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions