React Native Screen Component Creation

VerifiedCaution

Creates React Native screen components in src/screens/ directory. Used for screen addition and creation requests.

Sby Skills Guide Bot
DevelopmentBeginner
306/2/2026
Claude Code
#react-native#screen-component#mobile-development#typescript#expo

Recommended for

Our review

Creates a complete React Native screen component in the src/screens folder with a standardized structure.

Strengths

  • Automatically generates PascalCase filenames with Screen suffix
  • Includes React, StyleSheet, View, Text and Expo StatusBar imports
  • Provides a full-screen layout with flex: 1 and centered title

Limitations

  • Does not handle complex navigation without prior setup
  • Template remains minimal, without business logic
When to use it

When adding a new screen to a React Native app.

When not to use it

When modifying an existing screen or using a different architecture.

Security analysis

Caution
Quality score80/100

The skill uses Bash for creating a directory, a legitimate but powerful tool. No destructive or exfiltration commands are present, and the template is static React Native code. However, any skill with Bash access warrants caution due to potential for misuse if combined with other vulnerabilities.

Findings
  • Uses Bash tool, which could be misused if the skill is modified or instructions are injected, though current usage (mkdir) is harmless.

Examples

Add Home screen
Create a Home screen component in the screens folder.
Ajouter un écran Profil
Ajoute un écran Profil dans src/screens avec le template standard.

name: screen description: React Nativeの画面(Screen)コンポーネントを作成する。「画面を追加して」「ホーム画面を作って」などのリクエストで使用する。 allowed-tools: Read, Write, Edit, Glob, Grep, Bash argument-hint: [画面名]

画面コンポーネント作成

src/screens/ に画面用コンポーネントを作成する。

手順

  1. src/screens/ ディレクトリが存在しなければ作成する
  2. PascalCase のファイル名で .tsx ファイルを作成する(例: $ARGUMENTS.tsx または ${ARGUMENTS}Screen.tsx
  3. 画面名が "Screen" で終わっていなければ自動でサフィックスを付ける

テンプレート

import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import { StatusBar } from 'expo-status-bar';

export const ScreenNameScreen: React.FC = () => {
  return (
    <View style={styles.container}>
      <Text style={styles.title}>ScreenName</Text>
      <StatusBar style="auto" />
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
  title: {
    fontSize: 24,
    fontWeight: 'bold',
  },
});

ルール

  • 画面コンポーネントは flex: 1 でフルスクリーンにする
  • SafeAreaViewStatusBar を適切に使う
  • ナビゲーションライブラリが導入済みなら、navigation props の型を適切に定義する
  • ビジネスロジックが複雑な場合はカスタムフックに切り出す
Related skills