gpt4 book ai didi

ios - iOS 的 ScrollView 中缺少 TextInput,但 Android 中没有

转载 作者:行者123 更新时间:2023-11-29 10:23:35 24 4
gpt4 key购买 nike

我的 TextInput 在 iOS 的 ScrollView 中丢失了。它在安卓上运行良好。包括使用 Playground 的示例应用。

https://rnplay.org/apps/KtTZ2g

您可以看到 android 正在显示 TextInput,但 iOS 的不显示。

这些错误让我发疯......

最佳答案

使用 TextInput 时,请务必提供高度:

<TextInput
style={{flex: 1, color: 'black', height:40}}
editable={false}
defaultValue="+"
underlineColorAndroid='#C8C7CC' />

https://rnplay.org/apps/a6i08w

关于ios - iOS 的 ScrollView 中缺少 TextInput,但 Android 中没有,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33544318/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com