--- name: "figma-to-rn-android" description: "Convert Figma designs to React Native + Expo Android code using Material 3 components and dynamic theming. Use when the user says 'figma to rn android', 'convert figma android', 'design to code android'." --- # Figma to RN (Android) Convert Figma to RN+Expo code with Material 3 patterns. ## Pre-conversion checklist - [ ] Design uses Material 3 component library - [ ] All colors reference Material color tokens (primary, surface, onSurface, etc.) - [ ] Spacing uses 4dp grid (4, 8, 12, 16, 24, 32...) - [ ] Typography uses Material 3 type scale - [ ] Components named consistently - [ ] Variants used for states (default/pressed/disabled) ## RN libraries to use ```bash pnpm add react-native-paper @callstack/react-native-paper # Material 3 components pnpm add react-native-reanimated react-native-gesture-handler pnpm add nativewind # Tailwind for RN — alternative to Paper ``` Choose ONE primary: - **react-native-paper** — official Material Design, matches Google's MD3 - **nativewind + custom** — flexible but more work to match M3 ## Conversion table | Figma layer | RN component | |---|---| | Auto-layout horizontal | `` | | Auto-layout vertical | `` | | Frame with corner radius | `` | | Text | `` | | Material Button (filled) | `