agentleFS
ai-enhanced-engineerai-enhanced-engineer/aiee-skills/skills/formik-yup-react-native/SKILL.md

formik-yup-react-native

Skill4 starsChanged 5 months agoMITView on GitHub

Formik + Yup for React Native. TextInput integration, mobile validation UX, error timing. Use when building mobile forms with validation, handling keyboard/focus UX, or wiring Yup schemas to Formik in RN.

The file

Files
SKILL.md

Formik + Yup for React Native

Form validation for React Native.

When to Use

  • Forms with 3+ fields
  • Email/password validation
  • Mobile error UX
  • Keyboard field navigation

Foundation: react-redux-spa-patterns (Formik/Yup basics)

TextInput vs HTML

Critical: TextInput uses onChangeText={handleChange('field')}, not onChange={handleChange}.

WebReact Native
onChange + name attributeonChangeText + explicit field arg
Auto-submit on EnterManual keyboard handling

Error UX Timing

Show WhenWhy
On BlurTime to complete input
On Change (after touch)Immediate correction feedback
On SubmitCatch incomplete

Pattern: {errors.field && touched.field && <Text>{errors.field}</Text>}

Anti-Patterns

Anti-PatternPattern
Manual validationUse Yup schemas
Errors before touchCheck touched.field first
Duplicate submitsdisabled={isSubmitting}
Hidden keyboard inputsWrap in KeyboardAvoidingView

reference.md: Field components, keyboard dismissal, async validation, KeyboardAvoidingView setup examples.md: Complete forms, TextInput patterns, Yup schemas, field navigation, real-world code

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.