百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

react-native-use-form

> 编程语言
开源

适用于 React Native 的简单表单库,具有出色的用户体验,方便开发者和最终用户

99 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

适用于 React Native 的简单表单库,具有出色的用户体验,方便开发者和最终用户

react-native-use-form

Simple form library for React Native with great UX for developer and end-user api and some code inspired by wsmd/react-native-use-form

  • Autoscroll to next fields with keyboard (iOS/Android)
  • Validation
  • Autoscroll to errors in form if submit validation fails
  • Automatically adds a lot of props e.g. when you use the telephone('telNumber') it will open up the right keyboard + autocomplete
  • Email, username, password, number, numberText, decimal, decimalText,
  • Great typescript support!
  • Nested object with dot notation
  • Locale decimal support
  • Great decimal support with support for , notation and automatically convert it to a Number object (based on locale)

See an (older) demo: https://twitter.com/RichardLindhout/status/1344009881863516165

Installation

bash
yarn add react-native-use-form

or

bash
npm install react-native-use-form

Import some localized strings

Ideally you do this somewhere in your index.js before react-native-use-form is used. Currently we have en/nl/de/pl/pt/ar/ko/frf translations but it's really easy to add one extra since it are only some labels and error messages.

typescript
// e.g in your index.js
import {
  en,
  registerTranslation,
  registerDefaultLocale,
} from 'react-native-use-form';
registerTranslation('en', en);
// you can override the locale per form
registerDefaultLocale('en'); // optional (default = en)
// registerTranslation('nl', nl)

or register your own

Please send a PR with your language to make sure all locales are there next time

…

Advanced example

Also see /demo folder in this repository to see advanced usage!

…

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Checkout our other libraries

  • Simple cross platform navigation library for React Native: react-native-ridge-navigation
  • Smooth and fast cross platform Material Design date and time picker for React Native Paper: react-native-paper-dates
  • Smooth and fast cross platform Material Design Tabs for React Native Paper: react-native-paper-tabs
  • Simple translations in React (Native): react-ridge-translations

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言