package
The lightweight, schema-first, and fully type-safe form library for React Native
npm install @formisch/react-nativeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
146.7 kB
Includes dependencies.
Formisch is a schema-based, headless form library for React Native. It manages form state and validation. It is type-safe, fast by default and its bundle size is small due to its modular design. Try it out in our playground!
Formisch is also available for Angular, HonoX, Preact, Qwik, React, SolidJS, Svelte and Vue.
TextInput fieldsEvery form starts with the useForm hook. It initializes your form's store based on the provided Valibot schema and infers its types. Unlike the DOM frameworks, React Native has no native form element or submit event, so there is no <Form /> component and submission is triggered explicitly with handleSubmit, for example from a button's onPress or a text input's onSubmitEditing handler. You can access the state of a field with the useField hook or the <Field /> component to connect your TextInput.
import { Field, handleSubmit, useForm } from '@formisch/react-native';
import { Button, Text, TextInput, View } from 'react-native';
import * as v from 'valibot';
const LoginSchema = v.object({
email: v.pipe(v.string(), v.email()),
password: v.pipe(v.string(), v.minLength(8)),
});
export default function LoginScreen() {
const loginForm = useForm({
schema: LoginSchema,
});
const submitForm =
In addition, Formisch offers several functions (we call them "methods") that can be used to read and manipulate the form state. These include focus, getDeepErrorEntries, getDeepErrors, getDirtyInput, getDirtyPaths, getErrors, getInput, handleSubmit, insert, isDirty, isEdited, isTouched, isValid, move, pickDirty, remove, replace, reset, setErrors, setInput, swap and validate. These methods allow you to control the form programmatically.
What makes Formisch unique is its framework-agnostic core, which is fully native to the framework you are using. It works by inserting framework-specific reactivity blocks when the core package is built, giving you native performance for any UI update. A modular methods API keeps bundles starting at just ~2.5 kB by only including the methods you import, and end-to-end type safety covers deeply nested paths and field arrays with TypeScript inference that stays fast even as forms grow.
For a side-by-side look at how Formisch compares to React Hook Form and TanStack Form, see the comparison guide.
My vision for Formisch is to create a framework-agnostic platform similar to Vite, but for forms — a shared core that lets the same mental model and codebase work natively across every modern UI framework.
Thanks to our partners who support the development! Join them and contribute to the sustainability of open source software!

Find a bug or have an idea how to improve the library? Please fill out an issue. Together we can make forms even better!
This project is available free of charge and licensed under the MIT license.