-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
feat: add full screen ad hooks #100
Conversation
@wjaykim welcome welcome 👋 😄 I am really excited personally to (hopefully) have everyone join forces in one library we can all tag-team on so as maintainers we all have just a little to do instead of everyone having to do everything. I'll queue this for review and hopefully the vision of one great admob package and a reasonable work load for everyone can become a reality :) |
Codecov Report
@@ Coverage Diff @@
## main #100 +/- ##
==========================================
- Coverage 21.83% 20.06% -1.76%
==========================================
Files 25 29 +4
Lines 669 733 +64
Branches 171 189 +18
==========================================
+ Hits 146 147 +1
- Misses 523 586 +63 |
useDeepCompareEffect doesn't accept primitive value only as its dependency array. To avoid that, pass empty object as requestOptions instead of undefined value.
Co-authored-by: Dylan <[email protected]>
Co-authored-by: Dylan <[email protected]>
Co-authored-by: Dylan <[email protected]>
Co-authored-by: Dylan <[email protected]>
Co-authored-by: Dylan <[email protected]>
Co-authored-by: Dylan <[email protected]>
Co-authored-by: Dylan <[email protected]>
Co-authored-by: Dylan <[email protected]>
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.
Looks great to me, and @dylancom just had language comments which I went ahead and just committed, since it seemed best to do a squash merge anyway since it's one feature all at once effectively
I'll pull locally, check the example and assuming it looks good merge this
I tested it locally and everything works - I actually extended the test app a bit to test all 3 of the hooks and they're all good. So this is good to go --> @wjaykim 🏆 🙇 |
🎉 This PR is included in version 5.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [5.1.0](invertase/react-native-google-mobile-ads@v5.0.1...v5.1.0) (2022-04-16) ### Features * **consent:** add method that returns consent choices ([be967bd](invertase/react-native-google-mobile-ads@be967bd)) * hooks for all full screen ad types ([#100](invertase/react-native-google-mobile-ads#100)) ([0bd7ce8](invertase/react-native-google-mobile-ads@0bd7ce8))
Description
This PR add supports for hook-style ad state management which can be used for full screen ads(AppOpen, Interstitial, Rewarded). This feature is initially implemented in another admob library, @react-native-admob/admob.
I'm happy to join forces on this single package which can be maintained better😁.
Related issues
Release Summary
add full screen ad hooks
Checklist
and followed the process outlined there for submitting PRs.
Android
iOS
e2e
tests added or updated in__tests__e2e__
jest
tests added or updated in__tests__
Test Plan
Think
react-native-google-mobile-ads
is great? Please consider supporting the project with any of the below:Invertase
on Twitter