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

feat: Initial Native Ad Support #650

Merged
merged 39 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
4a749ec
build(deps): update example to rn 0.76.2 / bump react-native dep
wjaykim Nov 1, 2024
aed4b0e
feat: ios native advanced ad wip
wjaykim Nov 4, 2024
a718e07
feat: android native advanced ad wip
wjaykim Nov 5, 2024
5c2b058
feat: add icon support, revise asset keys
wjaykim Nov 20, 2024
c13ae13
feat: add ios media view
wjaykim Nov 20, 2024
328d82c
chore: add license headers
wjaykim Nov 20, 2024
4306143
feat: add android media view
wjaykim Nov 20, 2024
cba21a1
test: mock GoogleMobileAdsNativeViewNativeComponent
wjaykim Nov 20, 2024
7947653
fix: apply proper view hierarchy for ios assets
wjaykim Dec 25, 2024
c9cc3be
fix(android): change getConstants to getTypedExportedConstants
wjaykim Dec 25, 2024
be57e23
fix(android): request layout after updating native ad
wjaykim Dec 25, 2024
e2b59fd
chore: format ios code
wjaykim Dec 25, 2024
6a2c658
feat: implement ad event listeners, support more request options
wjaykim Dec 27, 2024
a9d9302
refactor: move ref util logics to separate file
wjaykim Dec 27, 2024
1fc64ca
chore: apply lint rule for sample App source
wjaykim Dec 27, 2024
80172e2
refactor: change assetKey to assetType
wjaykim Dec 27, 2024
aea10f0
feat: support resizeMode on media view
wjaykim Dec 27, 2024
6b47b10
docs: add native ads documentation
wjaykim Dec 27, 2024
cdd3587
chore: format ios code
wjaykim Dec 27, 2024
ed55dc9
docs: fix broken documentation
wjaykim Dec 27, 2024
5049dd5
docs: fix broken link in documentation
wjaykim Dec 27, 2024
732cc2f
docs: add caveats about native asset
wjaykim Dec 27, 2024
7813c21
refactor: release resources properly
wjaykim Dec 27, 2024
02b83e7
feat: support legacy architecture
wjaykim Dec 27, 2024
45a1c68
build: change example app new arch flag
wjaykim Dec 27, 2024
fe60544
chore: format ios code
wjaykim Dec 27, 2024
22fdbbe
chore: format android code
wjaykim Dec 27, 2024
eb23159
chore: revert unnecessary changes
wjaykim Dec 29, 2024
9815a92
docs: add native ads information in README
wjaykim Dec 29, 2024
260290d
docs: add more documentation
wjaykim Dec 29, 2024
572a4dc
test: patch jet so test execution is a button
mikehardy Dec 30, 2024
3f97d1f
test: updated Podfile.lock for test app
mikehardy Dec 30, 2024
eaf705f
test: copy test app patches during refresh
mikehardy Dec 30, 2024
6da565d
test: update refresh-example for current react-native style
mikehardy Dec 30, 2024
6c4bf40
test: result of running updated refresh-example
mikehardy Dec 30, 2024
9ef3689
test: minor adjustment to attribution
mikehardy Dec 30, 2024
4722714
fix(ios): on old arch, NativeEventEmitter requires module arg
mikehardy Dec 30, 2024
c57d809
fix(ios): on old architecture, emit the expected event type
mikehardy Dec 30, 2024
7f5aac4
docs(native): small grammatical items from review
mikehardy Dec 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ You decide how and where they're placed, so the layout is more consistent your a

<img width="300" src="https://developers.google.com/static/admob/images/format-native.svg" alt="Native">

[Work In Progress](https://github.com/invertase/react-native-google-mobile-ads/pull/650)
[Learn More](https://docs.page/invertase/react-native-google-mobile-ads/native-ads)

### Interstitial

Expand Down Expand Up @@ -119,16 +119,18 @@ This package can be used in both The Old and [The New Architecture](https://reac
When using The New Architecture, some legacy code will still be used though. See status below:

| Platform | Feature | Status |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| -------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------| ----------- |
| iOS | Mobile Ads SDK Methods (Turbo Native Module) | ✅ Complete |
| iOS | Banners (Fabric Native Component) | ✅ Complete |
| iOS | Full Screen Ads (Turbo Native Module) | ✅ Complete |
| iOS | Native Ads (Turbo Native Module, Fabric Native Component) | ✅ Complete |
| iOS | User Messaging Platform (Turbo Native Module) | ✅ Complete |
| iOS | [EventEmitter](https://github.com/reactwg/react-native-new-architecture/blob/main/docs/turbo-modules.md#add-event-emitting-capabilities) (Turbo Native Module) | ⏳ To-Do |
| iOS | Revenue Precision Constants (Turbo Native Module) | ✅ Complete |
| Android | Mobile Ads SDK Methods (Turbo Native Module) | ⏳ To-Do |
| Android | Banners (Fabric Native Component) | ⏳ To-Do |
| Android | Full Screen Ads (Turbo Native Module) | ⏳ To-Do |
| Android | Native Ads (Turbo Native Module, Fabric Native Component) | ✅ Complete |
| Android | User Messaging Platform (Turbo Native Module) | ⏳ To-Do |
| Android | [EventEmitter](https://github.com/reactwg/react-native-new-architecture/blob/main/docs/turbo-modules.md#add-event-emitting-capabilities) (Turbo Native Module) | ⏳ To-Do |
| Android | Revenue Precision Constants (Turbo Native Module) | ⏳ To-Do |
Expand Down
Loading
Loading