-
| 
         I am not able to generate codegen scaffolding code after changing type from  package.json   "codegenConfig": {
    "name": "RNTestNativeModuleSpec",
    "type": "all",
    "jsSrcsDir": "src"
  }TestCameraView.ts file in spec import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type { ViewProps, HostComponent } from 'react-native';
interface NativeProps extends ViewProps {
  text: string;
}
export default codegenNativeComponent<NativeProps>(
  'TestCameraView'
) as HostComponent<NativeProps>;generated scaffolding code does not contain anything inside of it like this ShadowNodes.cpp #include <react/renderer/components/RNTestNativeModuleSpec/ShadowNodes.h>
namespace facebook::react {
}not just only this but every file is empty like this  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
| 
         The problem is   | 
  
Beta Was this translation helpful? Give feedback.
The problem is
TestCameraView.ts's name. You have to appendNativeComponentso it becomesTestCameraViewNativeComponent.ts. Please check this document: https://github.com/reactwg/react-native-new-architecture/blob/main/docs/enable-libraries-prerequisites.md#fabric-native-components