# @types/react-native-safari-view

> TypeScript definitions for react-native-safari-view

Latest version **2.0.10** (published 2026-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-native-safari-view
pnpm add @types/react-native-safari-view
yarn add @types/react-native-safari-view
bun add @types/react-native-safari-view
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.10 |
| Published | 2026-01-10 |
| First published | 2017-09-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51448 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-native-safari-view
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-safari-view
- npm.io page: https://npm.io/package/@types/react-native-safari-view

## Dependencies (1)

- [react-native](https://npm.io/package/react-native.md) *

## Recent versions

- 2.0.10 (latest) — 2026-01-10
- 2.0.9 (ts4.6) — 2023-12-21
- 2.0.8 (ts4.5) — 2023-11-07
- 2.0.5 (ts3.6) — 2021-07-08
- 2.0.4 (ts2.8) — 2018-08-06
- 2.0.3 (ts2.6) — 2018-02-12
- 2.0.2 (ts2.3) — 2017-11-09
- 2.0.1 (ts2.0) — 2017-10-25
- 2.0.7 — 2023-10-18
- 2.0.6 — 2023-09-27
- 2.0.0 — 2017-09-22

## README

# Installation
> `npm install --save @types/react-native-safari-view`

# Summary
This package contains type definitions for react-native-safari-view (https://github.com/naoufal/react-native-safari-view).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-safari-view.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-safari-view/index.d.ts)
````ts
import { EmitterSubscription } from "react-native";

export interface SafariViewOptions {
    /**
     * A String containing the url you want to load in the Safari View
     */
    url: string;

    /**
     * A Boolean indicating to use Safari's Reader Mode if available
     */
    readerMode?: boolean | undefined;

    /**
     * A String containing a hex or rgba color to use for the browser controls
     */
    tintColor?: string | undefined;

    /**
     * A String containing a hex or rgba color to use for the background of the browser controls (only available on iOS 10 and higher)
     */
    barTintColor?: string | undefined;

    /**
     * A Boolean indicating to open the Safari View from the bottom
     */
    fromBottom?: boolean | undefined;
}

declare namespace SafariView {
    /**
     * Displays a Safari View with the provided URL
     */
    function show(options: SafariViewOptions): Promise<boolean>;

    /**
     * Dismisses the currently active Safari View
     */
    function dismiss(): void;

    /**
     * Checks if Safari View is available on the device
     */
    function isAvailable(): Promise<boolean>;

    function addEventListener(event: string, listener: () => void): EmitterSubscription;

    function removeEventListener(event: string, listener: () => void): void;
}
export default SafariView;

````

### Additional Details
 * Last updated: Sat, 10 Jan 2026 00:47:09 GMT
 * Dependencies: [react-native](https://npmjs.com/package/react-native)

# Credits
These definitions were written by .

---
_Source: https://npm.io/package/@types/react-native-safari-view · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
