Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(app-check, types): Correct ReactNativeFirebaseAppCheckProvider options type #6911

Merged
merged 2 commits into from
Feb 15, 2023

Conversation

frw
Copy link
Contributor

@frw frw commented Feb 15, 2023

Description

After the recent update to AppCheck types in 17.2.0, there is still an issue with configuring ReactNativeFirebaseAppCheckProvider when attempting to follow https://rnfirebase.io/app-check/usage:

image

The issue is due to a mismatch in the TypeScript declaration file.

ReactNativeFirebaseAppCheckProvider takes in a single options object:

https://github.com/invertase/react-native-firebase/blob/main/packages/app-check/lib/ReactNativeFirebaseAppCheckProvider.js#L6

while the type declaration indicates it takes in 4 separate objects for each platform:

https://github.com/invertase/react-native-firebase/blob/main/packages/app-check/lib/index.d.ts#L139-L142

Related issues

Fixes #6886

Release Summary

  • Update ReactNativeFirebaseAppCheckProvider options type

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
    • Yes
  • My change supports the following platforms;
    • Android
    • iOS
  • My change includes tests;
    • e2e tests added or updated in packages/\*\*/e2e
    • jest tests added or updated in packages/\*\*/__tests__
  • I have updated TypeScript types that are affected by my change.
  • This is a breaking change;
    • Yes
    • No

Test Plan

  • Tried using the new types and ensured they worked as expected

Think react-native-firebase is great? Please consider supporting the project with any of the below:

@CLAassistant
Copy link

CLAassistant commented Feb 15, 2023

CLA assistant check
All committers have signed the CLA.

@vercel
Copy link

vercel bot commented Feb 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
react-native-firebase ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 15, 2023 at 3:52PM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
react-native-firebase-next ⬜️ Ignored (Inspect) Feb 15, 2023 at 3:52PM (UTC)

@frw frw changed the title Update ReactNativeFirebaseAppCheckProvider options type fix(appcheck): Fixed ReactNativeFirebaseAppCheckProvider options type Feb 15, 2023
mikehardy
mikehardy previously approved these changes Feb 15, 2023
Copy link
Collaborator

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

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

🤦 really sorry for the error in the first place, thanks a bunch for the PR fixup, this looks correct

@mikehardy mikehardy added the Workflow: Pending Merge Waiting on CI or similar label Feb 15, 2023
@mikehardy mikehardy changed the title fix(appcheck): Fixed ReactNativeFirebaseAppCheckProvider options type fix(app-check, types): Correct ReactNativeFirebaseAppCheckProvider options type Feb 15, 2023
@mikehardy mikehardy merged commit 5d7241b into invertase:main Feb 15, 2023
@mikehardy mikehardy removed the Workflow: Pending Merge Waiting on CI or similar label Feb 15, 2023
exaby73 pushed a commit that referenced this pull request Aug 8, 2023
…tions type (#6911)

* fix(appcheck): Fixed ReactNativeFirebaseAppCheckProvider options type

* Update packages/app-check/lib/index.d.ts

---------

Co-authored-by: Mike Hardy <github@mikehardy.net>
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.

AppCheck follow up issues
3 participants