-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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(analytics): allow custom event parameters for screen_view events #5811
fix(analytics): allow custom event parameters for screen_view events #5811
Conversation
This pull request is being automatically deployed with Vercel (learn more). react-native-firebase-next – ./website_modular🔍 Inspect: https://vercel.com/invertase/react-native-firebase-next/5kp1fLvCJXVPb8Mu9SX5T9D8bvnt [Deployment for 7358020 canceled] react-native-firebase – ./🔍 Inspect: https://vercel.com/invertase/react-native-firebase/DPMpDoZ6diHiACRxvFTvM3RpCjW2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This is really clean and thanks especially for including test support.
Yes our superstruct version is really old, I brought it forward a few notches but there was some awful interaction between current versions and the way we're doing something under the covers so I wasn't able to bring it all the way forward, yet 😩
Happy to merge this though!
Assuming this passes tests etc you'll find a patch-package compatible patch set as an artifact on this github action: https://github.com/invertase/react-native-firebase/runs/3996604652?check_suite_focus=true - I usually try to release about once a week near the end of the week so that may be useful for you until it's time to publish this one |
Codecov Report
@@ Coverage Diff @@
## master #5811 +/- ##
============================================
+ Coverage 52.54% 52.98% +0.45%
Complexity 620 620
============================================
Files 208 208
Lines 10118 10118
Branches 1589 1589
============================================
+ Hits 5315 5360 +45
+ Misses 4543 4503 -40
+ Partials 260 255 -5 |
Fantastic - merged and will be out in next release, thanks again for this |
Thanks for the quick review and merge @mikehardy! |
Description
Fixes the problems described in #4594 by making type checks for
logScreenView
considerably more lenient. The implementation is according to #4594 (comment):In the FAQ linked above it says to use
type
instead ofobject
but in the version react-native-firebase depends ontype
is calledinterface
(it was renamed in0.10.0
release).Related issues
Fixes #4594.
Release Summary
Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
jest
tests added or updated inpackages/\*\*/__tests__
Test Plan
I added a test case.
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter