我有一个 React Native 项目,使用 Expo 管理的工作流程和 Prebuild。
我只是渲染一个 TextInput 组件,但收到此错误:
[RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] 执行输入操作需要有效的 sessionID
由于此错误,我的状态无法更新其值。我不知道这意味着什么。
"expo": "~49.0.15",
"react": "18.2.0",
"react-native": "0.72.6",
Run Code Online (Sandbox Code Playgroud)
在 TextInput 中输入文本后:
[CoreGraphics] 错误:此应用程序或其使用的库已将无效的数值(NaN 或非数字)传递给 CoreGraphics API,并且该值将被忽略。请解决这个问题。[CoreGraphics] 如果您想查看回溯,请设置 CG_NUMERICS_SHOW_BACKTRACE 环境变量。
<TextInput
style={[styles.input, { backgroundColor: lightGray }]}
autoCapitalize="none"
autoComplete="email"
keyboardType="email-address"
placeholder="Email"
onChangeText={(text) => setEmail(text)}
value={email}
/>
<TextInput
style={[styles.input, { backgroundColor: lightGray }]}
autoCapitalize="none"
placeholder="Password"
secureTextEntry={true}
onChangeText={(text) => setPassword(text)}
value={password}
/>
Run Code Online (Sandbox Code Playgroud)
然后我在新的npx create-expo-app
跑步中尝试了这个并得到了相同的结果。npx expo prebuild
npx expo run:ios
归档时间: |
|
查看次数: |
1877 次 |
最近记录: |