适用于 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
See an (older) demo: https://twitter.com/RichardLindhout/status/1344009881863516165
yarn add react-native-use-formor
npm install react-native-use-formIdeally 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.
// 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)Please send a PR with your language to make sure all locales are there next time
…Also see /demo folder in this repository to see advanced usage!
…See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
暂无开放 Issues,或尚未同步最近议题。