인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
디자인 및 창작 · SKILL.md

react-native-styling

react-native-styling

Style React Native apps with StyleSheet API, Flexbox, theming, and responsive design. Use when implementing React Native styles, theming, Flexbox layouts, or responsive design.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: react-native-styling description: Style React Native apps with StyleSheet API, Flexbox, theming, and responsive design. Use when implementing React Native styles, theming, Flexbox layouts, or responsive design. metadata: triggers: files: - '/*.tsx' - '/*.ts' keywords: - StyleSheet - style - theme - responsive - flexbox

React Native Styling

Priority: P1 (HIGH)

Implementation Guidelines

  • StyleSheet.create: Prefer this to inline objects (optimized, validated).
  • Flexbox: Default layout. No CSS Grid.
  • Responsive: Use Dimensions, useWindowDimensions, or percentage widths.
  • Theming: Centralize colors, fonts in theme/ folder.
  • Platform Styles: Use Platform.select for conditional styles.
  • Dark Mode: Use React Context + useColorScheme().

Responsive Design

const { width } = useWindowDimensions();
const isSmall = width < 375;

Anti-Patterns

  • No Inline Styles: Use StyleSheet.create.
  • No Magic Numbers: Use theme constants.
  • No Absolute Positioning: Avoid unless necessary.
  • No Fixed Widths: Use flex or percentages.

References

See references/theming.md for StyleSheet examples, Design Tokens, Theme Systems, Responsive Scaling, and Shadow Helpers.

저장한 Skills