chore: disable codegen (#3647)

We can not use Interop Layer with codegen - to be reverted once we integrate new architecture
This commit is contained in:
Krzysztof Moch 2024-04-03 20:51:26 +02:00 committed by GitHub
parent 9b66e7fdce
commit 1e5af7b526
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 9 deletions

View File

@ -64,10 +64,5 @@
"!**/*.tsbuildinfo",
"!docs",
"!examples"
],
"codegenConfig": {
"name": "RNCVideo",
"type": "components",
"jsSrcsDir": "./src/specs"
}
]
}

View File

@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/ban-types */
import type {HostComponent, ViewProps} from 'react-native';
import {NativeModules} from 'react-native';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import {NativeModules, requireNativeComponent} from 'react-native';
import type {
DirectEventHandler,
Double,
@ -382,6 +381,6 @@ export const VideoManager = NativeModules.VideoManager as VideoManagerType;
export const VideoDecoderProperties =
NativeModules.VideoDecoderProperties as VideoDecoderPropertiesType;
export default codegenNativeComponent<VideoNativeProps>(
export default requireNativeComponent<VideoNativeProps>(
'RCTVideo',
) as VideoComponentType;