mobile-patterns

Cross-platform mobile development patterns for React Native and Flutter.

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

This Claude skill provides a comprehensive guide to modern cross-platform mobile development patterns for React Native and Flutter. It focuses on high-performance architecture, covering cutting-edge features like React 19 Actions, Expo Server Components (RSC), and Dart 3 patterns to help developers build scalable, maintainable, and accessible mobile applications.

Use Cases

  • Case 1: Implementing streamlined form handling and state management in React Native using React 19 Actions and the useActionState hook.
  • Case 2: Architecting data-intensive mobile applications with Expo React Server Components (RSC) to enable direct database access and improve performance.
  • Case 3: Modernizing Flutter applications by adopting Dart 3 patterns and optimizing graphics for the Impeller rendering engine.
  • Case 4: Applying industry best practices for mobile navigation, offline-first capabilities, and accessibility to ensure a premium user experience across iOS and Android.
namemobile-patterns
descriptionCross-platform mobile development patterns for React Native and Flutter.

Mobile Patterns

React Native Patterns

React 19 Actions in RN

function SearchScreen() {
  const [error, submitAction, isPending] = useActionState(async (prev, formData) => {
    return await searchAPI(formData.get('query'));
  }, null);

  return (
    <View>
      <TextInput name="query" />
      <Button onPress={submitAction} title="Search" disabled={isPending} />
    </View>
  );
}

React Server Components (Expo RSC)

// server-component.tsx
export default async function DataList() {
  const data = await db.query('SELECT * FROM items'); // Direct DB access!
  return <View>{data.map(item => <Text>{item.name}</Text>)}</View>;
}
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';

const Stack = createStackNavigator();

function App() {
  return (
    <NavigationContainer>
      <Stack.Navigator>
        <Stack.Screen name="Home" component={HomeScreen} />
        <Stack.Screen name="Profile" component={ProfileScreen} />
      </Stack.Navigator>
    </NavigationContainer>
  );
}

Flutter Patterns (2025)

Impeller & Dart 3 Patterns

// Destructuring with patterns
var (name, age) = ('Mehmet', 25);

// Impeller-ready Graphics
CustomPaint(
  painter: MyImpellerPainter(), // Optimized for Impeller renderer
)

Best Practices

  1. Performance: Use FlatList/ListView for long lists
  2. Offline: Handle network failures gracefully
  3. Accessibility: Always add accessibility labels
  4. Testing: Test on real devices, not just emulators