问题标签 [tcomb-form-native]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
158 浏览

react-native - 找不到模块:无法解析“./datepicker”

当我尝试运行命令“expo start --web”时收到此错误消息

编译失败。G:/Just Build/rn/hello/tenten/node_modules/tcomb-form-native/lib/templates/bootstrap/index.js Module not found: Can't resolve './datepicker' in 'G:\Just Build\ rn\hello\tenten\node_modules\tcomb-form-native\lib\templates\bootstrap'

0 投票
0 回答
15 浏览

react-native - React Native - TouchableOpacity 需要两次轻按 onPress [仅在 iOS 中]

我已经看到了很多与此问题相关的问题,但到目前为止我无法解决问题。以下问题仅发生在 iOS 设备中。

我已经在 TouchableOpacity 按钮中使用“tcomb-form-native”库实现了一个表单。问题是当任何输入聚焦时保存按钮是不可点击的。这意味着我必须点击两次来保存我的表单,一次是为了删除/失去对输入的关注,一次是最后点击我的保存表单按钮。

我正在使用KeyboardAvoidingView来解决与 iOS 的兼容性问题。我也尝试过处理和始终使用keyboardShouldPersistTaps 。与 Keyboard.dismiss() 函数相同。对于任何情况,结果都相同。

这是我的代码: