@react-native/codegen 0.77.0-nightly-20241009-e4814b0d6 → 0.77.0-nightly-20241010-0d6908f4e
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.
|
@@ -38,7 +38,7 @@ package ${packageName};
|
|
|
38
38
|
|
|
39
39
|
${imports}
|
|
40
40
|
|
|
41
|
-
public class ${className}<T extends ${extendClasses}, U extends
|
|
41
|
+
public class ${className}<T extends ${extendClasses}, U extends BaseViewManager<T, ? extends LayoutShadowNode> & ${interfaceClassName}<T>> extends BaseViewManagerDelegate<T, U> {
|
|
42
42
|
public ${className}(U viewManager) {
|
|
43
43
|
super(viewManager);
|
|
44
44
|
}
|
|
@@ -225,7 +225,8 @@ function getDelegateImports(component) {
|
|
|
225
225
|
}
|
|
226
226
|
imports.add('import androidx.annotation.Nullable;');
|
|
227
227
|
imports.add('import com.facebook.react.uimanager.BaseViewManagerDelegate;');
|
|
228
|
-
imports.add('import com.facebook.react.uimanager.
|
|
228
|
+
imports.add('import com.facebook.react.uimanager.BaseViewManager;');
|
|
229
|
+
imports.add('import com.facebook.react.uimanager.LayoutShadowNode;');
|
|
229
230
|
return imports;
|
|
230
231
|
}
|
|
231
232
|
function generateMethods(propsString, commandsString) {
|
|
@@ -55,7 +55,7 @@ package ${packageName};
|
|
|
55
55
|
|
|
56
56
|
${imports}
|
|
57
57
|
|
|
58
|
-
public class ${className}<T extends ${extendClasses}, U extends
|
|
58
|
+
public class ${className}<T extends ${extendClasses}, U extends BaseViewManager<T, ? extends LayoutShadowNode> & ${interfaceClassName}<T>> extends BaseViewManagerDelegate<T, U> {
|
|
59
59
|
public ${className}(U viewManager) {
|
|
60
60
|
super(viewManager);
|
|
61
61
|
}
|
|
@@ -272,7 +272,8 @@ function getDelegateImports(component: ComponentShape) {
|
|
|
272
272
|
}
|
|
273
273
|
imports.add('import androidx.annotation.Nullable;');
|
|
274
274
|
imports.add('import com.facebook.react.uimanager.BaseViewManagerDelegate;');
|
|
275
|
-
imports.add('import com.facebook.react.uimanager.
|
|
275
|
+
imports.add('import com.facebook.react.uimanager.BaseViewManager;');
|
|
276
|
+
imports.add('import com.facebook.react.uimanager.LayoutShadowNode;');
|
|
276
277
|
|
|
277
278
|
return imports;
|
|
278
279
|
}
|