Skip to content

lukedj78/dev-flow / rn-expo-router

rn-expo-router

Verified

Use when working with navigation in an Expo + React Native app: adding routes, building tab/stack/drawer layouts, modal routes, dynamic segments (e.g. /profile/[id]), typed routes, deep linking, search params. Triggers on: "add a route", "wire up tabs", "open as modal", "set up deep linking", "configure navigation", or whenever an agent is about to touch a file under app/. Not for: styling navigation chrome (rn-styling), animating transitions (rn-animations-gestures, Wave 3), or non-RN web routing.

references/examples/modal-route.tsx

View on GitHub
// Two files combined here for the example.

// FILE 1: app/_layout.tsx (root stack must declare the modal screen)
import { Stack } from "expo-router";
export function RootLayout() {
  return (
    <Stack>
      <Stack.Screen name="(tabs)" options={{ headerShown: false }} />
      <Stack.Screen
        name="filters-modal"
        options={{ presentation: "modal", title: "Filters" }}
      />
    </Stack>
  );
}

// FILE 2: app/filters-modal.tsx
import { View, Text, Pressable } from "react-native";
import { useRouter } from "expo-router";

export default function FiltersModal() {
  const router = useRouter();
  return (
    <View className="flex-1 bg-white dark:bg-zinc-900 p-4 gap-4">
      <Text className="text-xl font-semibold">Filters</Text>
      {/* …filter controls… */}
      <Pressable
        onPress={() => router.back()}
        className="self-end px-4 py-2 rounded-full bg-primary"
      >
        <Text className="text-white">Apply</Text>
      </Pressable>
    </View>
  );
}

// USAGE from anywhere:
//   import { useRouter } from "expo-router";
//   const router = useRouter();
//   <Pressable onPress={() => router.push("/filters-modal")}><Text>Open</Text></Pressable>
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall