File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -129,22 +129,23 @@ - (void)setResizeMode:(NSString *)resizeMode {
129
129
130
130
@end
131
131
132
+ #ifndef RCT_NEW_ARCH_ENABLED
133
+
132
134
@implementation RNGoogleMobileAdsMediaViewManager
133
135
134
136
RCT_EXPORT_MODULE (RNGoogleMobileAdsMediaView)
135
137
136
138
RCT_EXPORT_VIEW_PROPERTY(responseId, NSString )
137
-
138
139
RCT_EXPORT_VIEW_PROPERTY(resizeMode, NSString )
139
140
140
- #ifndef RCT_NEW_ARCH_ENABLED
141
141
- (UIView *)view {
142
142
return [[RNGoogleMobileAdsMediaView alloc ] initWithBridge: self .bridge];
143
143
}
144
- #endif
145
144
146
145
@end
147
146
147
+ #endif
148
+
148
149
#ifdef RCT_NEW_ARCH_ENABLED
149
150
Class <RCTComponentViewProtocol> RNGoogleMobileAdsMediaViewCls (void ) {
150
151
return RNGoogleMobileAdsMediaView.class ;
Original file line number Diff line number Diff line change @@ -187,13 +187,17 @@ - (void)dealloc {
187
187
188
188
@end
189
189
190
+ #ifndef RCT_NEW_ARCH_ENABLED
191
+
192
+ @interface RNGoogleMobileAdsNativeViewManager : RCTViewManager
193
+ @end
194
+
190
195
@implementation RNGoogleMobileAdsNativeViewManager
191
196
192
197
RCT_EXPORT_MODULE (RNGoogleMobileAdsNativeView)
193
198
194
199
RCT_EXPORT_VIEW_PROPERTY(responseId, NSString )
195
200
196
- #ifndef RCT_NEW_ARCH_ENABLED
197
201
- (UIView *)view {
198
202
return [[RNGoogleMobileAdsNativeView alloc ] initWithBridge: self .bridge];
199
203
}
@@ -212,10 +216,11 @@ - (UIView *)view {
212
216
[view registerAsset: assetType reactTag: assetReactTag.intValue];
213
217
}];
214
218
}
215
- #endif
216
219
217
220
@end
218
221
222
+ #endif
223
+
219
224
#ifdef RCT_NEW_ARCH_ENABLED
220
225
Class <RCTComponentViewProtocol> RNGoogleMobileAdsNativeViewCls (void ) {
221
226
return RNGoogleMobileAdsNativeView.class ;
Original file line number Diff line number Diff line change 169
169
"name" : " RNGoogleMobileAdsSpec" ,
170
170
"type" : " all" ,
171
171
"jsSrcsDir" : " ./src/specs" ,
172
+ "ios" : {
173
+ "componentProvider" : {
174
+ "RNGoogleMobileAdsNativeView" : " RNGoogleMobileAdsNativeView" ,
175
+ "RNGoogleMobileAdsMediaView" : " RNGoogleMobileAdsMediaView"
176
+ }
177
+ },
172
178
"android" : {
173
179
"javaPackageName" : " io.invertase.googlemobileads"
174
180
}
You can’t perform that action at this time.
0 commit comments