react-native
react-native copied to clipboard
Text can't show degress if the value of the string is passed by a variable
Description
I think Text doesn't behave the same if the text is passed via a variable
Version
0.70.1
Output of npx react-native info
System: OS: macOS 12.3.1 CPU: (8) arm64 Apple M1 Memory: 160.70 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.17.1 - /usr/local/bin/node Yarn: Not Found npm: 8.19.2 - /opt/homebrew/bin/npm Watchman: Not Found Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.3/13E113 - /usr/bin/xcodebuild Languages: Java: 18.0.1.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.1 => 0.70.1 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
import React from 'react';
import {Text} from 'react-native';
const reproduceTextBug = () => {
const text = '10°';
return (
<Text>
10°
{text}
</Text>
);
};