![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@lynxts/native
Advanced tools
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.
@lynxts/native
version usedUsing Yarn:
yarn add @lynxts/core @lynxts/native
Using NPM:
npm i @lynxts/core @lynxts/native
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 TextInput 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.
import { FormProvider } from "@lynxts/core";
import { SubmitButton, textFieldOf } from "@lynxts/native";
import { ReactElement, memo, useCallback } from "react";
import { ObjectSchema, object, string } from "yup";
interface Login {
email: string;
password: string;
}
const schema: ObjectSchema<Login> = object({
email: string().email().required(),
password: string().required(),
});
const TextField = textFieldOf<Login>();
const SignIn = memo((): ReactElement => {
const handleSubmit = useCallback((values: Login): void => {
const { email, password } = values;
// Use the validated value to sign in!
}, []);
return (
<FormProvider onSubmit={handleSubmit} validation={schema}>
<TextField name="email" label="Email:" />
<TextField name="password" label="Password:" />
<SubmitButton title="Sign In" />
</FormProvider>
);
});
You can find the complete API refence here 📚
Suggestions are always welcome! Please create an issue describing the request, feature, or bug. We'll try to look into it as soon as possible 🙂
Contributions are very welcome! To do so, please fork this repository and open a Pull Request to the main
branch.
FAQs
Lynx.ts native package
The npm package @lynxts/native receives a total of 2 weekly downloads. As such, @lynxts/native popularity was classified as not popular.
We found that @lynxts/native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.