作成:2026-01-21最終更新:2026-01-21
このドキュメントをあなたの好きなAIアシスタントに参照してくださいChatGPTClaudeDeepSeekGoogle AI modeGeminiPerplexityMistralGrok
このページとあなたの好きなAIアシスタントを使ってドキュメントを要約します
バージョン履歴
- "すべてのエクスポートに関するドキュメントを統一"v8.0.02026/1/21
このページのコンテンツはAIを使用して翻訳されました。
英語の元のコンテンツの最新バージョンを見るEdit this doc
If you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy
Copy doc Markdown to clipboard
react-native-intlayer パッケージ
react-native-intlayer パッケージは、Intlayer を React Native アプリケーションに統合するために必要なツールを提供します。プロバイダーとロケールサポートのためのポリフィルが含まれています。
インストール
bash
コードをコピー
コードをクリップボードにコピー
npm install react-native-intlayerエクスポート
プロバイダー
テーブルのすべての内容を表示
テーブルをモーダルで開き、すべてのデータを明確に表示
| コンポーネント | 説明 |
|---|---|
IntlayerProvider | アプリケーションをラップし、Intlayer コンテキストを提供するプロバイダーコンポーネント。 |
インポート:
tsx
コードをコピー
コードをクリップボードにコピー
import "react-native-intlayer";ポリフィル
テーブルのすべての内容を表示
テーブルをモーダルで開き、すべてのデータを明確に表示
| 関数 | 説明 |
|---|---|
intlayerPolyfill | React Native が Intlayer をサポートするために必要なポリフィルを適用する関数。 |
インポート:
tsx
コードをコピー
コードをクリップボードにコピー
import "react-native-intlayer";Metro の設定
react-native-intlayer パッケージは、Intlayer が React Native 上で正しく動作するようにするための Metro 設定ユーティリティを提供します。
テーブルのすべての内容を表示
テーブルをモーダルで開き、すべてのデータを明確に表示
| 関数 | 説明 |
|---|---|
configMetroIntlayer | Intlayer を準備し、Metro 設定をマージする非同期関数。 |
configMetroIntlayerSync | Intlayer のリソースを準備せずに Metro 設定をマージする同期関数。 |
exclusionList | バンドルからコンテンツファイルを除外するために、Metro の blockList 用の RegExp パターンを作成します。 |
インポート:
tsx
コードをコピー
コードをクリップボードにコピー
import "react-native-intlayer/metro";import "react-native-intlayer/metro";