TextInput value and placeholders are not aligned out of the box
维护者通常 2 天内回复
@protikbiswas100 已经在做这个了。
开始于 2026年4月7日。
评估
这个 Issue 还没有评估数据。
描述
Problem Description
I have
<TextInput
style={styles.input}
placeholder="Note title testing!!..."
placeholderTextColor="#666"
value={title}
onChangeText={setTitle}
/>
and
input: {
backgroundColor: '#16213e',
borderRadius: 8,
padding: 12,
color: '#fff',
fontSize: 16,
borderWidth: 1,
borderColor: '#0f3460',
marginBottom: 16,
},
That yields this unaligned textinput
Steps To Reproduce
- create a text input
- set the placeholder prop
See that the placeholder is unaligned
Expected Results
The textinput placeholder to be aligned
CLI version
20.0.0
Environment
(I am running on Parrallels)
info Fetching system and libraries information...
System:
OS: Windows 11 10.0.26200
CPU: (4) arm64 Apple Silicon
Memory: 1.36 GB / 7.99 GB
Binaries:
Node:
version: 24.14.0
path: C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm:
version: 11.9.0
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
Versions:
- 10.0.22621.0
- 10.0.26100.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 18.3.11520.95 (Visual Studio Community 2026)
Languages:
Java: Not Found
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.1.1
wanted: 19.1.1
react-native:
installed: 0.82.1
wanted: 0.82.1
react-native-windows:
installed: 0.82.3
wanted: ^0.82.3
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
info React Native v0.84.1 is now available (your project is running on v0.82.1).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.84.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.82.1&to=0.84.1
info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows".
Community Modules
"@react-native/new-app-screen": "0.82.1",
"@react-navigation/bottom-tabs": "^7.15.9",
"@react-navigation/native": "^7.2.2",
"@react-navigation/stack": "^7.8.9",
"@tanstack/react-query": "^5.96.2",
"react": "19.1.1",
"react-native": "0.82.1",
"react-native-gesture-handler": "^2.31.0",
"react-native-safe-area-context": "^5.5.2",
"react-native-windows": "^0.82.3"
Target React Native Architecture
New Architecture (WinAppSDK) Only
Target Platform Version
<= 10.0.17763
Visual Studio Version
Visual Studio 2022
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
No response
- 主要语言
- C++
- 星标
- 17.4k
- 派生
- 1.2k
- 平均合并
- 2 天 17 小时
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/react-native-windows 的其他 Issue
-
Needs: Triage :mag:
难度 2/5 1-3 小时 新手友好度 82/100
microsoft/react-native-windows#16340 ·
维护者通常 2 天内回复
-
bug Needs: Triage :mag:
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/react-native-windows#16321 · 1 条评论 ·
维护者通常 2 天内回复
-
Needs: Triage :mag:
难度 5/5 一周以上 新手友好度 30/100
microsoft/react-native-windows#16442 · 1 条评论 ·
维护者通常 2 天内回复
-
Fabric: activating the window doesn't announce the window or the focused control to a screen reader未关闭Needs: Triage :mag:
难度 4/5 3-5 天 新手友好度 48/100
microsoft/react-native-windows#16435 ·
维护者通常 2 天内回复
-
bug Needs: Triage :mag:
难度 4/5 3-5 天 新手友好度 48/100
microsoft/react-native-windows#16410 ·
维护者通常 2 天内回复
查看 microsoft/react-native-windows 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
EsotericSoftware/spine-runtimes#3186 ·
-
Round video messages start gray and blocky with libx264: encoder is configured for 1,000,000 fps未关闭
难度 2/5 1-3 小时 新手友好度 78/100
telegramdesktop/tdesktop#31422 ·
维护者通常 9 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
zen-browser/desktop#15809 · 1 个 reaction ·
维护者通常 1 天内回复