Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Library re-architecture #42

Merged
merged 36 commits into from
Nov 4, 2021
Merged

Library re-architecture #42

merged 36 commits into from
Nov 4, 2021

Conversation

wjaykim
Copy link
Collaborator

@wjaykim wjaykim commented Nov 3, 2021

Re-architecture both native side code and typescript side code and added detailed example usage to example app.

Also this PR fixes several issues:
#29 #30 #32 #33 #37

Added RNAdMobFullScreenAdModule abstract class and refactored Ads to extend the class.
Changed App Open Ads to have requestId, to make it compatible with other full screen ads.
Added useFullScreenAd.ts and reuse hooks codes
Now useAppOpenAd hook must be called inside component wrapped with AppOpenAdProvider.
Before this change, AppOpenAd was re-created if more than one hook is generated.
To fix this, we must wrap components with context and provide sigleton ad instance.
@wjaykim wjaykim merged commit 55c2468 into master Nov 4, 2021
@wjaykim wjaykim deleted the destroy-ad branch November 5, 2021 03:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant