mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Codegen: ignore NativeUIManager.js when producing schema given a JavaScript directory
Summary: When crawling a provided JS directory to find all .js files for NativeModules and native components, ignore `NativeUIManager.js` for now, because it will be replaced with the Fabric UIManager in the future. The existing NativeUIManagerSpec.java won't be produced by the codegen, but stays manually checked in just in case: https://github.com/facebook/react-native/blob/0199a0392c65fa72d9599262ba1b4f8e14c0fc04/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeUIManagerSpec.java Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D23312859 fbshipit-source-id: 7d554fefa651732c13e478b8ec94566348ed3142
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8fc1646c75
commit
92a3dff58a
@@ -29,6 +29,9 @@ fileList.forEach(file => {
|
||||
.filter(
|
||||
f =>
|
||||
/^(Native.+|.+NativeComponent)/.test(path.basename(f)) &&
|
||||
// NativeUIManager will be deprecated by Fabric UIManager.
|
||||
// For now, ignore this spec completely because the types are not fully supported.
|
||||
!f.endsWith('NativeUIManager.js') &&
|
||||
!f.includes('__tests'),
|
||||
);
|
||||
allFiles.push(...dirFiles);
|
||||
|
||||
Reference in New Issue
Block a user