本页还没有译文
本页 3 段还没译成Español,下面显示的是英文原文。Usage with React Native
还没翻译译自英文(tanstack.com)本页 3 段都还没译
TanStack Form is headless and it should support React Native out-of-the-box without needing any additional configuration.
Here is an example:
<form.Field
name="age"
validators={{
onChange: (val) =>
val < 13 ? 'You must be 13 to make an account' : undefined,
}}
>
{(field) => (
<>
<Text>Age:</Text>
<TextInput value={field.state.value} onChangeText={field.handleChange} />
{!field.state.meta.isValid && (
<Text>{field.state.meta.errors.join(', ')}</Text>
)}
</>
)}
</form.Field>AI 翻译查看英文原文