Skip to content

docs: replace missing utils export with getUtils and FilePath in examples - #9306

Open
toyeshhm wants to merge 2 commits into
invertase:mainfrom
toyeshhm:fix-doc-typos
Open

docs: replace missing utils export with getUtils and FilePath in examples#9306
toyeshhm wants to merge 2 commits into
invertase:mainfrom
toyeshhm:fix-doc-typos

Conversation

@toyeshhm

@toyeshhm toyeshhm commented Sep 9, 2026

Copy link
Copy Markdown

docs/app/utils.mdx and docs/storage/usage/index.mdx import utils from @react-native-firebase/app, but the package has no runtime export by that name: packages/app/lib/index.ts re-exports ./modular, which exposes getUtils(app?) and the FilePath constant (Utils is a type-only export). Copying those samples fails at runtime. They now use getUtils() and FilePath, matching the v26 migration guide.

Also fixes two typos: emojii in the bug report template and fom in the messaging usage doc.

🔥

…ples

docs/app/utils.mdx and docs/storage/usage/index.mdx import `utils` from
`@react-native-firebase/app`, but the package has no runtime export by
that name. packages/app/lib/index.ts re-exports ./modular, which exposes
getUtils(app?) and the FilePath constant; `Utils` is a type-only export.
The samples now use those, matching the v26 migration guide.

Also fixes two typos: "emojii" in the bug report template and "fom" in
the messaging usage doc.
Copilot AI lite review requested due to automatic review settings September 9, 2026 17:27
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Changes are limited to documentation/template fixes and align the examples with the verified runtime exports (FilePath, getUtils) in packages/app/lib/index.ts.

Pull request overview

Fixes broken documentation examples that previously imported a non-existent runtime utils export from @react-native-firebase/app, updating them to use the actual modular exports (getUtils() and FilePath) so copy/paste works at runtime.

Changes:

  • Update Storage and App utils documentation to use FilePath and getUtils() instead of utils.
  • Fix small typos in Messaging docs and the bug report issue template.
File summaries
File Description
docs/storage/usage/index.mdx Updates Storage putFile example to use FilePath instead of utils.FilePath.
docs/messaging/usage/index.mdx Fixes typo in unsubscribe log message (“fom” → “from”).
docs/app/utils.mdx Replaces utils usage with FilePath / getUtils() in examples to match actual runtime exports.
.github/ISSUE_TEMPLATE/Bug_report.md Fixes typo in template comment (“emojii” → “emoji”).
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

import { View, Button } from 'react-native';

import { utils } from '@react-native-firebase/app';
import { FilePath } from '@react-native-firebase/app';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants