githubEdit

Native

CIarrow-up-right Releasearrow-up-right NPM versionarrow-up-right NPM bundle sizearrow-up-right NPM downloadsarrow-up-right NPM licensearrow-up-right GitHub Release Datearrow-up-right Known Vulnerabilitiesarrow-up-right

Lynx.ts Logo

Lynx.ts Native

TypeScript-first, lightning fast Forms for React.js and React Native. The @lynxts/native package provides abstractions and helpers specifically for React Native, which makes working with forms simpler, more maintainable, and intuitive.

Requirements

Install

Using Yarn:

yarn add @lynxts/core @lynxts/native

Using NPM:

npm i @lynxts/core @lynxts/native

Usage

To make using forms in React Native as simple as possible, @lynxts/native provides submit-like components based on every "touchable" core component (Button, TouchableHighlight, TouchableOIpacity, etc.). These components are just abstractions where the useFormSelector(..) hook is used to access the submit() function form the context to be called in the onPress(..) event.

It also provides a helper TextField<T> component based on the TextInputarrow-up-right foundational component. This component adds a label and error handling and its intention is for users to quickly jump into using simple forms. However, we strongly recommend creating you own custom field abstractions to get better control and customization.

API Reference

You can find the complete API refence here 📚

Something's missing?

Suggestions are always welcome! Please create an issuearrow-up-right describing the request, feature, or bug. We'll try to look into it as soon as possible 🙂

Contributions

Contributions are very welcome! To do so, please fork this repository and open a Pull Request to the main branch.

License

MIT Licensearrow-up-right

Last updated