{
 "kind": "tool",
 "slug": "react-native-safe-area-context",
 "path": "tools/react-native-safe-area-context/",
 "name": "react-native-safe-area-context",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Desktop and mobile apps",
   "tools/desktop-mobile/"
  ]
 ],
 "lead": "Handle safe areas in React Native on iOS, Android and web platforms.",
 "chips": [
  {
   "label": "Desktop and mobile apps",
   "path": "tools/desktop-mobile/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install react-native-safe-area-context"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/appandflow/react-native-safe-area-context"
  },
  {
   "label": "Website",
   "href": "https://github.com/AppAndFlow/react-native-safe-area-context#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/appandflow/react-native-safe-area-context"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 4, 2026",
   "note": "Latest GitHub release Nov 3, 2026. ",
   "src": "https://github.com/appandflow/react-native-safe-area-context"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "121 projects",
   "status": "info",
   "sub": "#3 of 105 in its category",
   "note": "Dependency in 121 public GitHub projects set up for AI coding agents that we scanned (1.9%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What react-native-safe-area-context does",
   "parts": [
    {
     "t": "prose",
     "text": "It hands you safe area insets in JavaScript so you place padding or margins yourself, and the site says its <code>SafeAreaView</code> applies insets natively, so layouts can update on rotation without waiting for a JavaScript update."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "react-native-safe-area-context popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "65",
       "of": "/ 100",
       "l": "Gid Score, #659 overall"
      },
      {
       "n": "17M",
       "l": "downloads a week, npm"
      },
      {
       "n": "2,768",
       "l": "GitHub stars"
      },
      {
       "n": "121",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How react-native-safe-area-context is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "react-native-safe-area-context is a dependency in 121 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.5% of the 4,867 JavaScript/TypeScript ones), #3 of 105 in desktop and mobile apps.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 196; those are left out of every share on this page.",
      "Projects that use it most often also use React Native (100.0%), react-native-screens (96.7%), Expo (93.4%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "66 projects, 2.7%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "60 projects, 2.0%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "46 projects, 1.4%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "15 projects, 3.2%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "10 projects, 2.9%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "9 projects, 1.9%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "6 projects, 2.2%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 100.0% of its projects",
       "v": "React Native",
       "path": "tools/react-native/"
      },
      {
       "l": "In 96.7% of its projects",
       "v": "react-native-screens",
       "path": "tools/react-native-screens/"
      },
      {
       "l": "In 93.4% of its projects",
       "v": "Expo",
       "path": "tools/expo/"
      },
      {
       "l": "In 83.5% of its projects",
       "v": "React Native Reanimated",
       "path": "tools/react-native-reanimated/"
      },
      {
       "l": "In 81.8% of its projects",
       "v": "React Native Gesture Handler",
       "path": "tools/react-native-gesture-handler/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 72.7% of its projects",
       "v": "React Native Web",
       "path": "tools/react-native-web/"
      },
      {
       "l": "In 71.1% of its projects",
       "v": "React Navigation",
       "path": "tools/react-navigation-native/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "react-native-safe-area-context in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Insets read directly from JavaScript",
       "v": "The site's pitch is \"Build layouts your way\". You take the safe area insets in JavaScript and choose where padding or margins go. You do not calculate offsets for each device."
      },
      {
       "l": "One API for iOS, Android and web",
       "v": "The site says the same API handles safe areas on iOS, Android and web, \"without writing separate logic for each platform.\""
      },
      {
       "l": "SafeAreaView works natively during rotation",
       "v": "The site says <code>SafeAreaView</code> applies safe area insets natively. It says this means the layout \"can update when the device rotates without waiting for a JavaScript update.\""
      },
      {
       "l": "Badge lists macOS and Windows too",
       "v": "The README's platform badge lists Android, iOS, web, macOS and Windows."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Rotation claim covers SafeAreaView only",
       "v": "The site makes its native rotation claim for <code>SafeAreaView</code> specifically. It does not make the same claim for insets you read in JavaScript and apply yourself."
      },
      {
       "l": "Site text names three platforms, not five",
       "v": "The website's cross-platform claim names iOS, Android and web. macOS and Windows appear only in the README badge. The sources give no further detail about those two platforms."
      },
      {
       "l": "Recent iOS sheet fix",
       "v": "The v5.11.1 notes list a fix to \"keep SafeAreaView insets current in native sheets after rotation\" on iOS. The notes do not say which earlier versions were affected."
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about react-native-safe-area-context",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/janicduplessis",
        "2 GitHub sponsors"
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "react-native: Mobile app framework",
        "react-native-screens: Native screen containers",
        "expo: React Native platform and tooling",
        "react-native-reanimated: Animations",
        "react-native-gesture-handler: Native gestures",
        "react: UI library"
       ]
      },
      {
       "title": "More in Desktop and mobile apps",
       "path": "tools/desktop-mobile/",
       "items": [
        {
         "text": "React Native",
         "path": "tools/react-native/"
        },
        {
         "text": "Expo",
         "path": "tools/expo/"
        },
        {
         "text": "react-native-screens",
         "path": "tools/react-native-screens/"
        },
        {
         "text": "React Native Gesture Handler",
         "path": "tools/react-native-gesture-handler/"
        },
        {
         "text": "React Navigation",
         "path": "tools/react-navigation-native/"
        },
        {
         "text": "React Native Async Storage",
         "path": "tools/react-native-async-storage-async-storage/"
        },
        {
         "text": "react-native-svg",
         "path": "tools/react-native-svg/"
        },
        {
         "text": "React Navigation Bottom Tabs",
         "path": "tools/react-navigation-bottom-tabs/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "react-native-safe-area-context",
       "me": true,
       "facts": [
        "MIT",
        "Gid 65",
        "17M/wk"
       ]
      }
     ],
     "more": "Compare react-native-safe-area-context with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install react-native-safe-area-context"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## react-native-safe-area-context\n- To control layout yourself, read the safe area insets in JavaScript and set padding or margins from them. The site contrasts this with \"calculating offsets for different devices\".\n- Keep one safe-area code path for iOS, Android and web. The site says the API is the same and no separate per-platform logic is needed.\n- When deciding whether to use `SafeAreaView`, the site says it applies insets natively, so layout \"can update when the device rotates without waiting for a JavaScript update.\"\n- If `SafeAreaView` is rendered inside iOS native sheets and the device can rotate, check the installed version. The v5.11.1 release notes list a fix to \"keep SafeAreaView insets current in native sheets after rotation\".\n- For macOS or Windows targets, note that the website says nothing about those platforms. Only the README badge lists them.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm react-native-safe-area-context"
  ],
  [
   "Category",
   "Desktop and mobile apps"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v5.11.1, November 3, 2026"
  ],
  [
   "On GitHub since",
   "August 2019"
  ],
  [
   "Gid Score",
   "65.3"
  ],
  [
   "Rank in category",
   "#3 of 105"
  ],
  [
   "GitHub",
   "appandflow/react-native-safe-area-context"
  ],
  [
   "Last change",
   "Nov 4, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/appandflow.png"
}