Skip to content
Back to skills

React Native Screen

ASecurity

Add a React Native screen and wire it into the navigation stack

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 3, 2026
ai-agentsgoreact

Works with

  • cli

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add black141312/ada --skill react-native-screen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of React Native Screen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for React Native Screen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/black141312-react-native-screen/badge)](https://www.skillsdirectory.com/skills/black141312-react-native-screen)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: react-native-screen
description: Add a React Native screen and wire it into the navigation stack
category: mobile
---

# React Native Screen

Use this when adding a new screen to a React Native app and registering it with React Navigation so it can be pushed, linked, and typed.

1. Create the screen component (e.g. `screens/DetailsScreen.tsx`) as a function component that destructures `navigation` and `route` from props.
2. Register it on the navigator: add a `<Stack.Screen name="Details" component={DetailsScreen} />` in the stack where it belongs.
3. Extend the param list type (`type RootStackParamList = { Details: { id: string } }`) and type props with `NativeStackScreenProps<RootStackParamList, 'Details'>`.
4. Navigate in with `navigation.navigate('Details', { id })`; read inputs via `route.params` and go back with `navigation.goBack()`.
5. Wrap content in `SafeAreaView` (or `useSafeAreaInsets`) and set `options={{ title }}` so the header and notches render correctly.
6. Add a deep-link path under `linking.config.screens` if the screen should be reachable by URL, then test push + back + deep link on device.

## Rules
- Keep navigation param payloads small and serializable — pass IDs, not whole objects or functions.
- Don't call `navigation.navigate` during render; do it in an effect or an event handler.
- Use `useFocusEffect`/`useIsFocused` for work that should run when the screen gains focus, not `useEffect` alone.
- Type the param list once and reuse it everywhere to catch wrong-param navigations at compile time.
- Account for the header height and safe-area insets so content isn't clipped under the notch or status bar.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.