React Native App Development

React Native App Development

Guides an AI agent to build cross-platform mobile apps with React Native: navigation, Redux or Context state, API integration and platform features.

Skill files6 files

references/

templates/

SKILL.md102 lines
1
---
2
name: react-native-app
3
description: >
4
Build cross-platform mobile apps with React Native. Covers navigation with
5
React Navigation, state management with Redux/Context API, API integration,
6
and platform-specific features.
7
---
8
9
# React Native App Development
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Create robust cross-platform mobile applications using React Native with modern development patterns including navigation, state management, API integration, and native module handling.
22
23
## When to Use
24
25
- Building iOS and Android apps from single codebase
26
- Rapid prototyping for mobile platforms
27
- Leveraging web development skills for mobile
28
- Sharing code between React Native and React Web
29
- Integrating with native modules and APIs
30
31
## Quick Start
32
33
Minimal working example:
34
35
```javascript
36
// Navigation with React Navigation
37
import React from "react";
38
import { NavigationContainer } from "@react-navigation/native";
39
import { createNativeStackNavigator } from "@react-navigation/native-stack";
40
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
41
import { Ionicons } from "@expo/vector-icons";
42
43
const Stack = createNativeStackNavigator();
44
const Tab = createBottomTabNavigator();
45
46
function HomeStack() {
47
return (
48
<Stack.Navigator
49
screenOptions={{
50
headerStyle: { backgroundColor: "#6200ee" },
51
headerTintColor: "#fff",
52
headerTitleStyle: { fontWeight: "bold" },
53
}}
54
>
55
<Stack.Screen
56
name="Home"
57
component={HomeScreen}
58
options={{ title: "Home Feed" }}
59
/>
60
<Stack.Screen name="Details" component={DetailsScreen} />
61
// ... (see reference guides for full implementation)
62
```
63
64
## Reference Guides
65
66
Detailed implementations in the `references/` directory:
67
68
| Guide | Contents |
69
|---|---|
70
| [Project Setup & Navigation](references/project-setup-navigation.md) | Project Setup & Navigation |
71
| [State Management with Redux](references/state-management-with-redux.md) | State Management with Redux |
72
| [API Integration with Axios](references/api-integration-with-axios.md) | API Integration with Axios |
73
| [Functional Component with Hooks](references/functional-component-with-hooks.md) | Functional Component with Hooks |
74
75
## Best Practices
76
77
### ✅ DO
78
79
- Use functional components with React Hooks
80
- Implement proper error handling and loading states
81
- Use Redux or Context API for state management
82
- Leverage React Navigation for routing
83
- Optimize list rendering with FlatList
84
- Handle platform-specific code elegantly
85
- Use TypeScript for type safety
86
- Test on both iOS and Android
87
- Use environment variables for API endpoints
88
- Implement proper memory management
89
90
### ❌ DON'T
91
92
- Use inline styles excessively (use StyleSheet)
93
- Make API calls without error handling
94
- Store sensitive data in plain text
95
- Ignore platform differences
96
- Create large monolithic components
97
- Use index as key in lists
98
- Make synchronous operations
99
- Ignore battery optimization
100
- Deploy without testing on real devices
101
- Forget to unsubscribe from listeners
102

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…