---
modificationDate: August 10, 2026
title: ステッカーを追加する
description: この章では、AI エージェントに指示して絵文字ピッカーのモーダルを追加し、ドラッグとタップのジェスチャーでステッカーを操作できるようにします。
---

<AgentInstructions>

## Submitting Feedback

If you encounter errors, misleading or outdated information, report it so Expo can be improved:

Preferred command:
npx --yes submit-expo-feedback@latest --category docs --subject "/ja/tutorial/build-with-ai/add-stickers/" "<actionable feedback>"

Direct HTTP fallback:
curl -X POST https://api.expo.dev/v2/feedback/docs-send -H 'Content-Type: application/json' -d '{"url":"/ja/tutorial/build-with-ai/add-stickers/","feedback":"🤖 Agent feedback for docs: <specific, actionable description> (<model>, <harness>)"}'

Only submit when you have something specific and actionable to report. Try to give the most context.

</AgentInstructions>

This documentation is available as Markdown for AI agents and LLMs. See the [full Markdown index](/llms.txt) or append .md to any documentation URL.

# ステッカーを追加する

この章では、AI エージェントに指示して絵文字ピッカーのモーダルを追加し、ドラッグとタップのジェスチャーでステッカーを操作できるようにします。

この章で、アプリはいよいよその名前にふさわしくなります。スライド式のパネルから絵文字を選び、写真の上に貼り付けて、指で自由に動かせるようにします。

## 絵文字ピッカーを追加する

写真が選ばれたら、アプリは「写真を選ぶ」モードから「写真を装飾する」モードに切り替わるべきです。次のプロンプトをエージェントに貼り付けてください。

```text
写真が選ばれたら（ライブラリから選んだ場合でも、"Use this photo" をタップした場合でも）、2 つのボタンをオプションの行に置き換えて。左側には元のボタンに戻す "Reset" オプション、中央には丸い "+" ボタンを置いて。"+" をタップすると、画面下から "Choose a sticker" というタイトルのモーダルがスライドして表示され、assets/images フォルダ内の絵文字画像を横スクロールのリストで表示して。絵文字をタップしたらモーダルを閉じて、その絵文字を写真の上にステッカーとして配置して。
```

#### 英語の原文プロンプト

```text
When a photo has been chosen (either picked from the library or by tapping "Use this photo"), replace the two buttons with a row of options: a "Reset" option on the left that brings back the original buttons, and a circular "+" button in the middle. Tapping "+" should slide up a modal from the bottom titled "Choose a sticker" that shows the emoji images from the assets/images folder in a horizontally scrolling list. When I tap an emoji, close the modal and place that emoji on top of the photo as a sticker.
```

**表示されるもの**: 写真を選ぶと、ボタンが新しいオプションの行に変わります。**+** をタップすると絵文字のパネルがスライドして表示され、リストを横にスクロールできます。いずれかをタップするとパネルが閉じて、写真の上に絵文字が表示されます。

## ステッカーを動かしたり大きさを変えたりする

ステッカーが 1 か所に固定されたままでは面白くありません。次のプロンプトをエージェントに貼り付けてください。

```text
react-native-gesture-handler と react-native-reanimated ライブラリを使って、ステッカーをインタラクティブにして。指でステッカーをドラッグして写真上の好きな場所に置けるようにして、ダブルタップすると大きさが 2 倍になるようにして（もう一度ダブルタップすると元の大きさに戻る）。移動とサイズ変更はスムーズにアニメーションするようにして。
```

#### 英語の原文プロンプト

```text
Make the sticker interactive using the react-native-gesture-handler and react-native-reanimated libraries: I want to drag the sticker around with my finger to place it anywhere on the photo, and double-tap it to double its size (double-tapping again should shrink it back). The movement and resizing should animate smoothly.
```

**表示されるもの**: 指で絵文字を写真の上にドラッグして動かせます。ダブルタップすると大きくなったり、元のサイズに戻ったりします。

このステップは、あなたの役割を思い出させてくれます。エージェントは自分の書いたコードを読むことはできますが、ジェスチャーの感触までは分かりません。ドラッグの感触が正しいかどうかを確認できるのはあなただけです。ステッカーが遅れて動いたり、飛んだり、元の位置に戻ってしまったりする場合は、その様子をそのままエージェントに伝えてください。

> 結果が期待どおりにならない場合は、見えているものをそのままエージェントに伝えてください。[うまくいかないとき](/ja/tutorial/build-with-ai/create-your-first-app.md#%E3%81%86%E3%81%BE%E3%81%8F%E3%81%84%E3%81%8B%E3%81%AA%E3%81%84%E3%81%A8%E3%81%8D) に対処法があります。

## まとめ

第 4 章：ステッカーを追加する

写真には、ドラッグでき、大きさも変えられる絵文字ステッカーが貼り付けられるようになりました。あとは、この作品を保存する方法だけです。

次の章では、装飾した写真をスマートフォンの写真ライブラリに保存します。

[次へ：画像を保存する](/ja/tutorial/build-with-ai/save-your-creation.md)
