teads-react-native 6.0.6-alpha.0 → 6.0.6-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,39 +17,19 @@ public class TeadsFeedPackage extends BaseReactPackage {
|
|
|
17
17
|
|
|
18
18
|
@Override
|
|
19
19
|
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
new TeadsMediaPlacementManager()
|
|
23
|
-
);
|
|
20
|
+
// 🔑 EMPTY for Fabric-only libraries
|
|
21
|
+
return Collections.emptyList();
|
|
24
22
|
}
|
|
25
23
|
|
|
24
|
+
// 🔑 MUST return null for Fabric view-only libraries
|
|
26
25
|
@Override
|
|
27
|
-
public NativeModule getModule(String
|
|
28
|
-
if (TeadsAdPlacementFeedManager.REACT_CLASS.equals(s)) {
|
|
29
|
-
return new TeadsAdPlacementFeedManager();
|
|
30
|
-
}
|
|
31
|
-
if (TeadsMediaPlacementManager.REACT_CLASS.equals(s)) {
|
|
32
|
-
return new TeadsMediaPlacementManager();
|
|
33
|
-
}
|
|
26
|
+
public NativeModule getModule(String name, ReactApplicationContext context) {
|
|
34
27
|
return null;
|
|
35
28
|
}
|
|
36
29
|
|
|
30
|
+
// 🔑 MUST be empty for view-only Fabric libraries
|
|
37
31
|
@Override
|
|
38
32
|
public ReactModuleInfoProvider getReactModuleInfoProvider() {
|
|
39
|
-
return
|
|
40
|
-
@Override
|
|
41
|
-
public Map<String, ReactModuleInfo> getReactModuleInfos() {
|
|
42
|
-
Map<String, ReactModuleInfo> map = new HashMap<>();
|
|
43
|
-
map.put(TeadsAdPlacementFeedManager.REACT_CLASS, new ReactModuleInfo(
|
|
44
|
-
TeadsAdPlacementFeedManager.REACT_CLASS, // name
|
|
45
|
-
TeadsAdPlacementFeedManager.REACT_CLASS, // className
|
|
46
|
-
false, // canOverrideExistingModule
|
|
47
|
-
false, // needsEagerInit
|
|
48
|
-
false, // isCxxModule
|
|
49
|
-
true // isTurboModule
|
|
50
|
-
));
|
|
51
|
-
return map;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
33
|
+
return Collections::emptyMap;
|
|
54
34
|
}
|
|
55
35
|
}
|