Skip to content

Commit 79354eb

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Update documentation for codegen options interfaceOnly (#51924)
Summary: Pull Request resolved: #51924 In this diff I'm updating the documentation for codegen options `interfaceOnly` changelog: [internal] internal Reviewed By: arushikesarwani94, cortinico Differential Revision: D76293414 fbshipit-source-id: 9a8fd752302d4167c8764ce76c0038cd5cc47d7f
1 parent 0448898 commit 79354eb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/react-native-codegen/src/CodegenSchema.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ export type ComponentShape = $ReadOnly<{
104104
}>;
105105

106106
export type OptionsShape = $ReadOnly<{
107+
// Use to generate only interfaces of components (C++ Props, C++ EventEmitters, JVM interfaces) and not their implementation.
108+
// This is useful for components that have a custom implementation of ShadowNode, ComponentDescriptor, State.
107109
interfaceOnly?: boolean,
108110
// Use for components with no current paper rename in progress
109111
// Does not check for new name

0 commit comments

Comments
 (0)