小编Jes*_*ill的帖子

如何通过 Jetpack Compose 使用 Material TextField Composable 的 readOnly 属性

我的用例是,我有一个表单,其中一些字段是手动填写的,其他字段将用户带到一个屏幕,他们可以在其中在一个大列表中搜索他们想要的值。仅接受用户输入的字段工作正常,但是当我尝试将属性添加readOnly = trueTextField可组合项时,出现以下错误:

\n
None of the following functions can be called with the arguments supplied.\nTextField(TextFieldValue, (TextFieldValue) \xe2\x86\x92 Unit, Modifier = ..., TextStyle = ..., (() \xe2\x86\x92 Unit)? = ..., (() \xe2\x86\x92 Unit)? = ..., (() \xe2\x86\x92 Unit)? = ..., (() \xe2\x86\x92 Unit)? = ..., Boolean = ..., VisualTransformation = ..., KeyboardOptions = ..., Boolean = ..., Int = ..., (ImeAction, SoftwareKeyboardController?) \xe2\x86\x92 Unit = ..., (SoftwareKeyboardController) \xe2\x86\x92 Unit = ..., InteractionState = ..., Color = …
Run Code Online (Sandbox Code Playgroud)

android-jetpack-compose

5
推荐指数
1
解决办法
3165
查看次数

在 iOS 上运行排毒测试时模拟器无法打开

当我尝试运行detox test模拟器时,模拟器似乎没有打开,并且测试只是超时。

我确认我的设置是正确的,并尝试这样做以确保我的模拟器可以从终端启动,并且我的detox配置中的设备类型是正确的。

我收到的错误如下。

Timeout - Async callback was not invoked within the 300000ms timeout specified by jest.setTimeout.
Error: Timeout - Async callback was not invoked within the 300000ms timeout specified by jest.setTimeout.
Run Code Online (Sandbox Code Playgroud)

DetoxRuntimeError: Detox instance has not been initialized

HINT: There was an error on attempt to call detox.init()

DetoxRuntimeError: Aborted detox.init() execution, and now running detox.cleanup()

HINT: Most likely, your test runner is tearing down the suite due to the timeout …
Run Code Online (Sandbox Code Playgroud)

react-native react-native-ios detox

1
推荐指数
1
解决办法
2371
查看次数