[**react-native-notify-kit**](react-native/reference/index)

---

[react-native-notify-kit](react-native/reference/index) / IOSNotificationAttachment

# Interface: IOSNotificationAttachment

Defined in: [packages/react-native/src/types/NotificationIOS.ts:624](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationIOS.ts#L624)

An interface for describing an iOS Notification Attachment.

View the [Attachments](/react-native/ios/appearance#attachments) documentation to learn more.

## Platform

ios

## Properties

### id?

> `optional` **id?**: `string`

Defined in: [packages/react-native/src/types/NotificationIOS.ts:629](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationIOS.ts#L629)

A optional unique identifier of the attachment.
If no `id` is provided, a unique id is created for you.

---

### thumbnailClippingRect?

> `optional` **thumbnailClippingRect?**: [`IOSAttachmentThumbnailClippingRect`](react-native/reference/Interface.IOSAttachmentThumbnailClippingRect)

Defined in: [packages/react-native/src/types/NotificationIOS.ts:661](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationIOS.ts#L661)

An optional clipping rectangle for a thumbnail image.

---

### thumbnailHidden?

> `optional` **thumbnailHidden?**: `boolean`

Defined in: [packages/react-native/src/types/NotificationIOS.ts:656](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationIOS.ts#L656)

When set to `true` the thumbnail will be hidden.
Defaults to `false`.

---

### thumbnailTime?

> `optional` **thumbnailTime?**: `number`

Defined in: [packages/react-native/src/types/NotificationIOS.ts:672](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationIOS.ts#L672)

The frame number of an animation to use as the thumbnail.

For a video, it is the time (in seconds) into the video from which to
grab the thumbnail image.

For a GIF, it is the frame number of the animation to use
as a thumbnail image.

---

### typeHint?

> `optional` **typeHint?**: `string`

Defined in: [packages/react-native/src/types/NotificationIOS.ts:650](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationIOS.ts#L650)

An optional hint about an attachment’s file type, as as Uniform Type Identifier (UTI).

A list of UTI values can be found [here](https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html) e.g. for JPEG you'd use `public.jpeg` as the `typeHint` value.

If you do not include this key, the attachment’s filename extension is used to determine its type.

---

### url

> **url**: `string`

Defined in: [packages/react-native/src/types/NotificationIOS.ts:641](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/NotificationIOS.ts#L641)

A URL to the media file to display.

The value can be any of the following:

- An absolute path to a file on the device
- iOS resource

For a list of supported file types, see [Supported File Types](https://developer.apple.com/documentation/usernotifications/unnotificationattachment#1682051) on the official Apple documentation for more information.
