feat: add react-native-components skill#47
Open
ademakdogan wants to merge 1 commit intogoogle-labs-code:mainfrom
Open
feat: add react-native-components skill#47ademakdogan wants to merge 1 commit intogoogle-labs-code:mainfrom
ademakdogan wants to merge 1 commit intogoogle-labs-code:mainfrom
Conversation
Add a new skill for converting Stitch designs into modular React Native components. Includes: - SKILL.md with HTML-to-RN mapping tables, platform-specific guidelines, StyleSheet styling approach, and performance best practices - Component template using View/StyleSheet instead of div/className - Gold-standard ActivityCard example ported from react-components - Architecture checklist with native primitive and platform handling checks - Style guide with RN-compatible unitless numeric values - Shared fetch-stitch.sh script for asset retrieval Closes google-labs-code#41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduces a new
react-native-componentsskill for converting Stitch designs into modular React Native components.Closes #41
What's Included
SKILL.mdREADME.mdexamples/gold-standard-card.tsxreact-componentsusing native primitives (View,Text,Image,Pressable,StyleSheet,React.memo)resources/component-template.tsxView/StyleSheetinstead ofdiv/classNameresources/architecture-checklist.mdresources/style-guide.jsonscripts/fetch-stitch.shKey Features
Platform.select(),SafeAreaView,KeyboardAvoidingViewguidelinesFlatListvirtualization,React.memo(),useCallbackbest practicesStyleSheet.create()with theme tokens, NativeWind support optionStructure Consistency
Follows the same
SKILL.md + README.md + examples/ + resources/ + scripts/structure used byreact-componentsand other skills in this repository. Uses the sameallowed-toolsfrontmatter pattern.