2

如果文本值中有表情符号,则 TextInput 样式不会更新,但是如果没有表情符号,则文本值颜色正在更新。我想知道为什么会出现这个问题?是反应原生问题还是我做错了什么?

React Native Environment Info:
System:
OS: macOS 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
Memory: 151.51 MB / 8.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 11.2.0 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.9.0 - /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: 27, 28
Build Tools: 28.0.3, 29.0.0
System Images: android-27 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.3/10G8 - /usr/bin/xcodebuild
npmPackages:
react: ^16.8.6 => 16.8.6
react-native: 0.58.6 => 0.58.6
npmGlobalPackages:
create-react-native-app: 2.0.2
react-native-cli: 2.0.1
react-native: 0.59.9

请打开世博小吃并用表情符号和不带表情符号的文字书写,您将立即看到问题所在。

https://snack.expo.io/@hamzashahbaz/textinput-error

4

1 回答 1

0

您的代码看起来正确。这可能是您已经提出的真正的 react-native ios 问题:github.com/facebook/react-native/issues/25874

于 2019-09-04T15:36:43.663 回答