원클릭으로
react-native-styling
Senior-level styling guidelines for React Native using custom theme and StyleSheet.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Senior-level styling guidelines for React Native using custom theme and StyleSheet.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Mandatory rules and components for handling keyboard avoidance smoothly in the React Native app.
How to correctly handle and format protobuf Timestamp dates sent by the API Gateway to prevent "Invalid Date" issues.
Senior-level React Native architecture and patterns for Expo 54 apps.
Strict coding standards, naming conventions, file size limits, and typing rules.
Guidelines for managing server state, queries, and API clients in React Native.
Best practices for implementing forms with React Hook Form and Zod.
| name | React Native Styling |
| description | Senior-level styling guidelines for React Native using custom theme and StyleSheet. |
Follow these rules strictly when styling components.
Never use inline styles unless it's strictly necessary for dynamic values (e.g., animations or dynamically computed dimensions).
// ❌ BAD
<View style={{ marginTop: 10, backgroundColor: 'red' }} />
// ✅ GOOD
<View style={styles.container} />
You must ALWAYS use the shared theme object for spacing, colors, typography, and border radius.
import { theme } from '@/shared/themes/theme';
const styles = StyleSheet.create({
container: {
padding: theme.spacing.md,
backgroundColor: theme.colors.background,
borderRadius: theme.radius.lg,
},
});
Do not hardcode hex codes or pixel padding (except for 1px borders sometimes). Always search the theme object first.
Do NOT use the bare <Text> component from react-native.
Always use the custom AppText component (located in src/components/typography/AppText) which applies correct default fonts, colors, and accessibility traits.
When creating custom UI components (like buttons, chips, inputs):
style prop.style={[styles.base, style]}.Pressable for buttons to handle complex state (e.g., pressed, hovered) more elegantly.[!TIP] Use
SafeAreaVieworuseSafeAreaInsetsfromreact-native-safe-area-contextfor screens, not manual padding, to handle notches and home indicators gracefully.