Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text can't show degress if the value of the string is passed by a variable #35040

Closed
lampouridis opened this issue Oct 20, 2022 · 1 comment
Closed

Comments

@lampouridis
Copy link

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&deg;
      {text}
    </Text>
  );
};

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

Screenshot 2022-10-20 at 8 51 23 PM

@lampouridis
Copy link
Author

https://www.npmjs.com/package/html-entities using this library resolves the problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants