skills/react-native-style/SKILL.md
Guidelines for styling in React Native (Flexbox, StyleSheet). Trigger: When styling components, fixing layout issues, or adding visual effects.
npx skillsauth add luisdavidtf/vindex react-native-styleInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
StyleSheet.create({}) to define styles.style={{ margin: 10 }}) as this causes re-renders and strictly hurts performance.// Bad
<View style={{ flex: 1, backgroundColor: 'white' }} />
// Good
<View style={styles.container} />
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'white',
},
});
flex: 1 to fill available space.SafeAreaView (from react-native-safe-area-context) for top-level screen containers to handle notches and home indicators.View without a Text component.variant="bodyMedium").documentation
Guidelines for global state management with Zustand. Trigger: When creating global stores, shared UI state, or managing session data.
development
TypeScript strict patterns and best practices. Trigger: When implementing or refactoring TypeScript in .ts/.tsx (types, interfaces, generics, const maps, type guards, removing any, tightening unknown).
testing
Protocol for QA, error verification, and skill evolution to prevent recurring bugs.
tools
Professional standards for Git version control, branching, and commit messages.