jutsu-react-native-web
Validation and quality skills for React Native Web projects covering components, styling, navigation, and testing.
- CCM score
- 46 of 100
- GitHub stars
- 201
Own this plugin? Claim it
What it does
- Adds 5 skills:
react-native-web-core,react-native-web-styling,react-native-web-navigation,react-native-web-performance, andreact-native-web-testing - Covers cross-platform components, StyleSheet API and platform-specific styles, React Navigation with deep linking, and web-specific routing
- Guides code splitting, bundle optimization, and memoization for web performance, plus Jest and React Native Testing Library component tests
- Requires React Native Web 0.18+, React 18+, TypeScript 5.0+, and Node.js 18+ for projects that use these skills
Validation and quality enforcement for React Native Web projects with cross-platform components, styling, navigation, performance, and testing.
Add marketplace
/plugin marketplace add TheBushidoCollective/hanRun it inside Claude Code once, then install the plugin below.
Install
/plugin install jutsu-react-native-web@hanRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceReact Native Web - Core Concepts
React Native Web enables React Native components and APIs to run on the web, providing a unified codebase for web and native platforms.
Key Concepts
Platform Abstraction
React Native Web provides a consistent API across web and native platforms:
import { View, Text, StyleSheet } from 'react-native';
export function MyComponent() {
return (
<View style={styles.container}>
<Text style={styles.text}>Works on web and native!</Text>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
text: {
fontSize: 16,
color: '#333',
},
});
Core Components
Use React Native primitives instead of HTML elements:
<View>instead of<div><Text>instead of<span>or<p><Image>instead of<img><TextInput>instead of<input><ScrollView>instead of scrollable<div><Pressable>instead of<button>
Platform-Specific Code
Use Platform module for platform-specific behavior:
import { Platform } from 'react-native';
const styles = StyleSheet.create({
container: {
marginTop: Platform.select({
web: 20,
ios: 30,
android: 25,
default: 20,
}),
},
});
// Or use Platform.OS
if (Platform.OS === 'web') {
// Web-specific code
}
Best Practices
Component Structure
✅ Use React Native primitives consistently:
import { View, Text, Pressable } from 'react-native';
function Button({ onPress, title }: { onPress: () => void; title: string }) {
return (
<Pressable onPress={onPress}>
<View style={styles.button}>
<Text style={styles.buttonText}>{title}</Text>
</View>
</Pressable>
);
}
Type Safety
✅ Use TypeScript for prop types:
import { ViewStyle, TextStyle, ImageStyle } from 'react-native';
interface Props {
title: string;
onPress: () => void;
style?: ViewStyle;
textStyle?: TextStyle;
disabled?: boolean;
}
export function CustomButton({ title, onPress, style, textStyle, disabled }: Props) {
// Implementation
}
Accessibility
✅ Include accessibility props:
<Pressable
accessibilityRole="button"
accessibilityLabel="Submit form"
accessibilityState={{ disabled: isDisabled }}
onPress={handleSubmit}
>
<Text>Submit</Text>
</Pressable>
Examples
Basic Component
import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
interface CardProps {
title: string;
description: string;
}
export function Card({ title, description }: CardProps) {
return (
<View style={styles.card}>
<Text style={styles.title}>{title}</Text>
<Text style={styles.description}>{description}</Text>
</View>
);
}
const styles = StyleSheet.create({
card: {
padding: 16,
backgroundColor: '#fff',
borderRadius: 8,
shadowColor: '#000',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.1,
shadowRadius: 4,
},
title: {
fontSize: 18,
fontWeight: 'bold',
marginBottom: 8,
},
description: {
fontSize: 14,
color: '#666',
},
});
Interactive Component with State
import React, { useState } from 'react';
import { View, Text, Pressable, StyleSheet } from 'react-native';
export function Counter() {
const [count, setCount] = useState(0);
return (
<View style={styles.container}>
<Text style={styles.count}>{count}</Text>
<View style={styles.buttons}>
<Pressable style={styles.button} onPress={() => setCount(c => c - 1)}>
<Text style={styles.buttonText}>-</Text>
</Pressable>
<Pressable style={styles.button} onPress={() => setCount(c => c + 1)}>
<Text style={styles.buttonText}>+</Text>
</Pressable>
</View>
</View>
);
}
const styles = StyleSheet.create({
container: {
alignItems: 'center',
padding: 20,
},
count: {
fontSize: 48,
fontWeight: 'bold',
marginBottom: 20,
},
buttons: {
flexDirection: 'row',
gap: 10,
},
button: {
backgroundColor: '#007AFF',
paddingHorizontal: 24,
paddingVertical: 12,
borderRadius: 8,
},
buttonText: {
color: '#fff',
fontSize: 24,
fontWeight: 'bold',
},
});
Common Patterns
Layout with Flexbox
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'column',
},
header: {
height: 60,
backgroundColor: '#f8f8f8',
},
content: {
flex: 1,
padding: 16,
},
footer: {
height: 50,
backgroundColor: '#f8f8f8',
},
});
Conditional Rendering
function UserProfile({ user }: { user?: User }) {
if (!user) {
return (
<View style={styles.center}>
<Text>Please log in</Text>
</View>
);
}
return (
<View style={styles.profile}>
<Text style={styles.name}>{user.name}</Text>
<Text style={styles.email}>{user.email}</Text>
</View>
);
}
Anti-Patterns
❌ Don't use HTML elements directly:
// Bad
function Component() {
return <div><span>Text</span></div>;
}
// Good
function Component() {
return <View><Text>Text</Text></View>;
}
❌ Don't use CSS classes:
// Bad
<div className="container">Content</div>
// Good
<View style={styles.container}>Content</View>
❌ Don't access DOM directly:
// Bad
document.getElementById('my-element')
// Good - use refs
const ref = useRef<View>(null);
Related Skills
- react-native-web-styling: Advanced styling patterns and responsive design
- react-native-web-navigation: Navigation setup and routing
- react-native-web-performance: Performance optimization techniques
- react-native-web-testing: Testing strategies for React Native Web
Readme
React Native Web
Validation and quality enforcement for React Native Web projects, ensuring code quality through TypeScript type checking and React Native Web best practices.
Skills
This plugin provides the following skills:
- react-native-web-core: Core React Native Web concepts, components, and cross-platform patterns
- react-native-web-styling: Styling patterns using StyleSheet API, platform-specific styles, and responsive design
- react-native-web-navigation: Navigation patterns with React Navigation for web and native platforms
- react-native-web-performance: Performance optimization, code splitting, and bundle optimization for web
- react-native-web-testing: Testing patterns with Jest, React Native Testing Library, and web-specific testing
Installation
Install via the han CLI:
han plugin install react-native-web
Requirements
- React Native Web 0.18+
- React 18+
- TypeScript 5.0+
- Node.js 18+
Details
- Marketplace
- TheBushidoCollective/han
- Source
- plugins/frameworks/react-native-web
- Category
- Framework
- Keywords
- react-native-web, react-native, react, web, typescript, cross-platform
- Listed since
- Apr 7, 2026
More from TheBushidoCollective/han
All 340Similar to jutsu-react-native-web
More Mobile Appsreact-native-webPluginTheBushidoCollective/han201 starsValidation and quality enforcement for React Native Web projects with cross-platform components, styling, navigation, performance, and testing.
react-nativePluginTheBushidoCollective/han201 starsValidation and quality enforcement for React Native mobile applications with components, navigation, styling, and native modules.
react-skillsPluginfcakyon/claude-codex-settings1.2K starsReact, Next.js, and React Native best practices with web design guidelines.
react-native-appSkillaj-geddes/useful-ai-prompts510 installsCross-platform React Native app guidance covering navigation, state, API integration, and native features.
frontend-mobile-developmentPluginHermeticOrmus/LibreUIUX-Claude-Code127 starsFrontend UI development and mobile application implementation across platforms
testing-react-native-appsPlugincallstackincubator/agent-skills1.7K starsReact Native testing support spanning CI artifacts, test authoring, device automation, and QA workflows.