Enable lint/sort-imports everywhere (#41334)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41334

TSIA.

Changelog: [Internal]

Reviewed By: robhogan

Differential Revision: D51025812

fbshipit-source-id: e10d437be775a6b80946483aa96460f34927f870
This commit is contained in:
Moti Zilberman 2023-11-06 12:59:38 -08:00 committed by Facebook GitHub Bot
parent fda7d69b38
commit d6e0bc714a
406 changed files with 1431 additions and 1490 deletions

View File

@ -12,6 +12,8 @@
'use strict';
/* eslint-disable lint/sort-imports */
const metroBabelRegister = require('metro-babel-register');
const nullthrows = require('nullthrows');
const createCacheKeyFunction =

View File

@ -10,9 +10,9 @@
'use strict';
const {transform: babelTransform} = require('@babel/core');
const fixtures = require('../__test_fixtures__/fixtures.js');
const failures = require('../__test_fixtures__/failures.js');
const fixtures = require('../__test_fixtures__/fixtures.js');
const {transform: babelTransform} = require('@babel/core');
const transform = (fixture, filename) =>
babelTransform(fixture, {

View File

@ -11,10 +11,10 @@
import getAssetDestPathAndroid from '../getAssetDestPathAndroid';
jest.dontMock('../getAssetDestPathAndroid').dontMock('../assetPathUtils');
const path = require('path');
jest.dontMock('../getAssetDestPathAndroid').dontMock('../assetPathUtils');
describe('getAssetDestPathAndroid', () => {
test('should use the right destination folder', () => {
const asset = {

View File

@ -11,10 +11,10 @@
import getAssetDestPathIOS from '../getAssetDestPathIOS';
jest.dontMock('../getAssetDestPathIOS');
const path = require('path');
jest.dontMock('../getAssetDestPathIOS');
describe('getAssetDestPathIOS', () => {
test('should build correct path', () => {
const asset = {

View File

@ -11,9 +11,9 @@
import type {AssetData} from 'metro/src/Assets';
import path from 'path';
import fs from 'fs';
import assetPathUtils from './assetPathUtils';
import fs from 'fs';
import path from 'path';
export function cleanAssetCatalog(catalogDir: string): void {
const files = fs

View File

@ -10,17 +10,17 @@
*/
import type {Config} from '@react-native-community/cli-types';
import type {RequestOptions} from 'metro/src/shared/types.flow';
import type {ConfigT} from 'metro-config';
import type {RequestOptions} from 'metro/src/shared/types.flow';
import loadMetroConfig from '../../utils/loadMetroConfig';
import saveAssets from './saveAssets';
import {logger} from '@react-native-community/cli-tools';
import chalk from 'chalk';
import Server from 'metro/src/Server';
import metroBundle from 'metro/src/shared/output/bundle';
import metroRamBundle from 'metro/src/shared/output/RamBundle';
import path from 'path';
import chalk from 'chalk';
import saveAssets from './saveAssets';
import loadMetroConfig from '../../utils/loadMetroConfig';
import {logger} from '@react-native-community/cli-tools';
export type BundleCommandArgs = {
assetsDest?: string,

View File

@ -11,8 +11,8 @@
import type {PackagerAsset} from './assetPathUtils';
import path from 'path';
import assetPathUtils from './assetPathUtils';
import path from 'path';
function getAssetDestPathAndroid(asset: PackagerAsset, scale: number): string {
const androidFolder = assetPathUtils.getAndroidResourceFolderName(

View File

@ -11,8 +11,8 @@
import type {Command} from '@react-native-community/cli-types';
import path from 'path';
import buildBundle from './buildBundle';
import path from 'path';
export type {BundleCommandArgs} from './buildBundle';

View File

@ -11,9 +11,6 @@
import type {AssetData} from 'metro/src/Assets';
import {logger} from '@react-native-community/cli-tools';
import fs from 'fs';
import path from 'path';
import {
cleanAssetCatalog,
getImageSet,
@ -23,6 +20,9 @@ import {
import filterPlatformAssetScales from './filterPlatformAssetScales';
import getAssetDestPathAndroid from './getAssetDestPathAndroid';
import getAssetDestPathIOS from './getAssetDestPathIOS';
import {logger} from '@react-native-community/cli-tools';
import fs from 'fs';
import path from 'path';
type CopiedFiles = {
[src: string]: string,

View File

@ -9,12 +9,12 @@
* @oncall react_native
*/
import type {Command, Config} from '@react-native-community/cli-types';
import type {BundleCommandArgs} from '../bundle';
import type {Command, Config} from '@react-native-community/cli-types';
import metroRamBundle from 'metro/src/shared/output/RamBundle';
import bundleCommand from '../bundle';
import buildBundle from '../bundle/buildBundle';
import metroRamBundle from 'metro/src/shared/output/RamBundle';
const ramBundleCommand: Command = {
name: 'ram-bundle',

View File

@ -11,11 +11,11 @@
import type {Config} from '@react-native-community/cli-types';
import {KeyPressHandler} from '../../utils/KeyPressHandler';
import {logger} from '@react-native-community/cli-tools';
import chalk from 'chalk';
import execa from 'execa';
import fetch from 'node-fetch';
import {KeyPressHandler} from '../../utils/KeyPressHandler';
const CTRL_C = '\u0003';
const CTRL_D = '\u0004';

View File

@ -11,8 +11,8 @@
import type {Command} from '@react-native-community/cli-types';
import path from 'path';
import runServer from './runServer';
import path from 'path';
export type {StartCommandArgs} from './runServer';

View File

@ -14,21 +14,20 @@ import type {Reporter} from 'metro/src/lib/reporting';
import type {TerminalReportableEvent} from 'metro/src/lib/TerminalReporter';
import typeof TerminalReporter from 'metro/src/lib/TerminalReporter';
import chalk from 'chalk';
import Metro from 'metro';
import {Terminal} from 'metro-core';
import path from 'path';
import url from 'url';
import {createDevMiddleware} from '@react-native/dev-middleware';
import isDevServerRunning from '../../utils/isDevServerRunning';
import loadMetroConfig from '../../utils/loadMetroConfig';
import attachKeyHandlers from './attachKeyHandlers';
import {
createDevServerMiddleware,
indexPageMiddleware,
} from '@react-native-community/cli-server-api';
import {logger, version} from '@react-native-community/cli-tools';
import isDevServerRunning from '../../utils/isDevServerRunning';
import loadMetroConfig from '../../utils/loadMetroConfig';
import attachKeyHandlers from './attachKeyHandlers';
import {createDevMiddleware} from '@react-native/dev-middleware';
import chalk from 'chalk';
import Metro from 'metro';
import {Terminal} from 'metro-core';
import path from 'path';
import url from 'url';
export type StartCommandArgs = {
assetPlugins?: string[],

View File

@ -12,10 +12,10 @@
import type {Config} from '@react-native-community/cli-types';
import type {ConfigT, InputConfigT, YargArguments} from 'metro-config';
import path from 'path';
import {loadConfig, mergeConfig, resolveConfig} from 'metro-config';
import {CLIError, logger} from '@react-native-community/cli-tools';
import {reactNativePlatformResolver} from './metroPlatformResolver';
import {CLIError, logger} from '@react-native-community/cli-tools';
import {loadConfig, mergeConfig, resolveConfig} from 'metro-config';
import path from 'path';
export type {Config};

View File

@ -9,20 +9,20 @@
* @oncall react_native
*/
import type {NextHandleFunction} from 'connect';
import type {BrowserLauncher} from './types/BrowserLauncher';
import type {EventReporter} from './types/EventReporter';
import type {Experiments, ExperimentsConfig} from './types/Experiments';
import type {Logger} from './types/Logger';
import type {NextHandleFunction} from 'connect';
import InspectorProxy from './inspector-proxy/InspectorProxy';
import deprecated_openFlipperMiddleware from './middleware/deprecated_openFlipperMiddleware';
import openDebuggerMiddleware from './middleware/openDebuggerMiddleware';
import DefaultBrowserLauncher from './utils/DefaultBrowserLauncher';
import reactNativeDebuggerFrontendPath from '@react-native/debugger-frontend';
import connect from 'connect';
import path from 'path';
import serveStaticMiddleware from 'serve-static';
import deprecated_openFlipperMiddleware from './middleware/deprecated_openFlipperMiddleware';
import openDebuggerMiddleware from './middleware/openDebuggerMiddleware';
import InspectorProxy from './inspector-proxy/InspectorProxy';
import DefaultBrowserLauncher from './utils/DefaultBrowserLauncher';
type Options = $ReadOnly<{
projectRoot: string,

View File

@ -9,6 +9,7 @@
*/
import type {EventReporter} from '../types/EventReporter';
import TTLCache from '@isaacs/ttlcache';
type PendingCommand = {

View File

@ -9,19 +9,19 @@
* @oncall react_native
*/
import type {EventReporter} from '../types/EventReporter';
import type {Experiments} from '../types/Experiments';
import type {
JsonPagesListResponse,
JsonVersionResponse,
Page,
PageDescription,
} from './types';
import type {EventReporter} from '../types/EventReporter';
import type {Experiments} from '../types/Experiments';
import type {IncomingMessage, ServerResponse} from 'http';
import Device from './Device';
import url from 'url';
import WS from 'ws';
import Device from './Device';
const debug = require('debug')('Metro:InspectorProxy');

View File

@ -9,9 +9,9 @@
* @oncall react_native
*/
import type {Logger} from '../types/Logger';
import type {NextHandleFunction} from 'connect';
import type {IncomingMessage, ServerResponse} from 'http';
import type {Logger} from '../types/Logger';
import open from 'open';

View File

@ -9,16 +9,16 @@
* @oncall react_native
*/
import type {NextHandleFunction} from 'connect';
import type {IncomingMessage, ServerResponse} from 'http';
import type {InspectorProxyQueries} from '../inspector-proxy/InspectorProxy';
import type {BrowserLauncher, LaunchedBrowser} from '../types/BrowserLauncher';
import type {EventReporter} from '../types/EventReporter';
import type {Experiments} from '../types/Experiments';
import type {Logger} from '../types/Logger';
import type {NextHandleFunction} from 'connect';
import type {IncomingMessage, ServerResponse} from 'http';
import url from 'url';
import getDevToolsFrontendUrl from '../utils/getDevToolsFrontendUrl';
import url from 'url';
const debuggerInstances = new Map<string, ?LaunchedBrowser>();

View File

@ -10,9 +10,8 @@
'use strict';
const ESLintTester = require('./eslint-tester.js');
const rule = require('../platform-colors.js');
const ESLintTester = require('./eslint-tester.js');
const eslintTester = new ESLintTester();

View File

@ -10,9 +10,8 @@
'use strict';
const ESLintTester = require('./eslint-tester.js');
const rule = require('../react-native-modules');
const ESLintTester = require('./eslint-tester.js');
const NATIVE_MODULES_DIR = __dirname;

View File

@ -10,8 +10,8 @@
'use strict';
const path = require('path');
const withBabelRegister = require('./with-babel-register');
const path = require('path');
// We use the prepack hook before publishing package to set this value to true
const PACKAGE_USAGE = false;

View File

@ -8,10 +8,10 @@
* @oncall react_native
*/
const path = require('path');
const fs = require('fs');
const os = require('os');
const {sync: makeDirSync} = require('make-dir');
const os = require('os');
const path = require('path');
const packageJson = JSON.parse(
fs.readFileSync(require.resolve('../package.json'), 'utf8'),

View File

@ -8,13 +8,13 @@
* @oncall react_native
*/
const babel = require('@babel/core');
const {OptionManager, DEFAULT_EXTENSIONS} = require('@babel/core');
const sourceMapSupport = require('source-map-support');
const {addHook} = require('pirates');
const path = require('path');
const fs = require('fs');
const diskCache = require('./disk-cache');
const babel = require('@babel/core');
const {DEFAULT_EXTENSIONS, OptionManager} = require('@babel/core');
const fs = require('fs');
const path = require('path');
const {addHook} = require('pirates');
const sourceMapSupport = require('source-map-support');
function compile(sourceMapManager, cache, options, code, filename) {
const opts = new OptionManager().init({

View File

@ -5,15 +5,15 @@
* LICENSE file in the root directory of this source tree.
*/
import {expectCodeIsEqual, FakeWritable} from '../src/TestHelpers';
import { Command } from '../src/Command';
import { Event } from '../src/Event';
import {
emitNotificationDecl,
emitRequestDecl,
emitResponseDecl,
emitTypeDecl,
} from '../src/HeaderWriter';
import { Event } from '../src/Event';
import { Command } from '../src/Command';
import {FakeWritable, expectCodeIsEqual} from '../src/TestHelpers';
import { Type } from '../src/Type';
let stream = null;

View File

@ -5,15 +5,15 @@
* LICENSE file in the root directory of this source tree.
*/
import {expectCodeIsEqual, FakeWritable} from '../src/TestHelpers';
import { Command } from '../src/Command';
import { Event } from '../src/Event';
import {
emitNotificationDef,
emitRequestDef,
emitResponseDef,
emitTypeDef,
} from '../src/ImplementationWriter';
import { Event } from '../src/Event';
import { Command } from '../src/Command';
import {FakeWritable, expectCodeIsEqual} from '../src/TestHelpers';
import { Type } from '../src/Type';
let stream = null;

View File

@ -8,8 +8,8 @@
* @format
*/
import {Property} from './Property';
import {toCppNamespace, toCppType} from './Converters';
import {Property} from './Property';
export class Command {
domain: string;

View File

@ -8,8 +8,8 @@
* @format
*/
import {Property} from './Property';
import {toCppNamespace, toCppType} from './Converters';
import {Property} from './Property';
export class Event {
domain: string;

View File

@ -8,14 +8,13 @@
* @format
*/
import {Writable} from 'stream';
import {Command} from './Command';
import {toCppNamespace} from './Converters';
import {Event} from './Event';
import {GeneratedHeader} from './GeneratedHeader';
import {Property} from './Property';
import {PropsType, Type} from './Type';
import {Command} from './Command';
import {Event} from './Event';
import {toCppNamespace} from './Converters';
import {Writable} from 'stream';
export class HeaderWriter {
stream: Writable;

View File

@ -8,12 +8,11 @@
* @format
*/
import {Writable} from 'stream';
import {GeneratedHeader} from './GeneratedHeader';
import {PropsType, Type} from './Type';
import {Command} from './Command';
import {Event} from './Event';
import {GeneratedHeader} from './GeneratedHeader';
import {PropsType, Type} from './Type';
import {Writable} from 'stream';
export class ImplementationWriter {
stream: Writable;

View File

@ -9,10 +9,10 @@
*/
import {
type JsTypeString,
jsTypeToCppType,
toCppNamespace,
toCppType,
type JsTypeString,
} from './Converters';
export class Property {

View File

@ -8,8 +8,8 @@
* @format
*/
import {Property} from './Property';
import {jsTypeToCppType, toCppNamespace, toCppType} from './Converters';
import {Property} from './Property';
export class Type {
domain: string;

View File

@ -8,23 +8,19 @@
* @format
*/
import fs from 'fs';
import yargs from 'yargs';
import {Command} from './Command';
import {Event} from './Event';
import {Graph} from './Graph';
import {Property} from './Property';
import {PropsType, Type} from './Type';
import {HeaderWriter} from './HeaderWriter';
import {ImplementationWriter} from './ImplementationWriter';
// $FlowFixMe[cannot-resolve-module] : this isn't a module, just a JSON file.
const standard = require('devtools-protocol/json/js_protocol.json');
import {Property} from './Property';
import {PropsType, Type} from './Type';
import fs from 'fs';
import yargs from 'yargs';
const custom = require('../src/custom.json');
// $FlowFixMe[cannot-resolve-module] : this isn't a module, just a JSON file.
const standard = require('devtools-protocol/json/js_protocol.json');
type Descriptor = {|
types: Array<Type>,

View File

@ -24,9 +24,9 @@ import type {
*/
const {parseSync, transformFromAstSync} = require('@babel/core');
const makeHMRConfig = require('@react-native/babel-preset/src/configs/hmr');
const crypto = require('crypto');
const fs = require('fs');
const makeHMRConfig = require('@react-native/babel-preset/src/configs/hmr');
const nullthrows = require('nullthrows');
const path = require('path');

View File

@ -9,12 +9,12 @@
'use strict';
const {danger, fail, /*message,*/ warn} = require('danger');
const includes = require('lodash.includes');
const eslint = require('@seadub/danger-plugin-eslint');
const fetch = require('node-fetch');
const {validate: validateChangelog} =
require('@rnx-kit/rn-changelog-generator').default;
const eslint = require('@seadub/danger-plugin-eslint');
const {danger, fail, /*message,*/ warn} = require('danger');
const includes = require('lodash.includes');
const fetch = require('node-fetch');
const isFromPhabricator =
danger.github.pr.body &&

View File

@ -18,12 +18,12 @@ const {
GITHUB_SHA,
} = process.env;
const fs = require('fs');
const datastore = require('./datastore');
const {
createOrUpdateComment,
validateEnvironment: validateEnvironmentForMakeComment,
} = require('./make-comment');
const fs = require('fs');
/**
* Generates and submits a comment. If this is run on the main or release branch, data is

View File

@ -8,21 +8,22 @@
* @flow strict-local
*/
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import type {ImageSource} from 'react-native/Libraries/Image/ImageSource';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';
import type {
DimensionValue,
EdgeInsetsValue,
PointValue,
} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';
import type {ImageSource} from 'react-native/Libraries/Image/ImageSource';
import type {
Int32,
Float,
Int32,
WithDefault,
} from 'react-native/Libraries/Types/CodegenTypes';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -8,10 +8,11 @@
* @flow strict-local
*/
import type {WithDefault} from 'react-native/Libraries/Types/CodegenTypes';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {WithDefault} from 'react-native/Libraries/Types/CodegenTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -8,10 +8,11 @@
* @flow strict-local
*/
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -8,10 +8,11 @@
* @flow strict-local
*/
import type {DimensionValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {DimensionValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -9,9 +9,10 @@
*/
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -8,10 +8,11 @@
* @flow strict-local
*/
import type {WithDefault} from 'react-native/Libraries/Types/CodegenTypes';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {WithDefault} from 'react-native/Libraries/Types/CodegenTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -8,14 +8,15 @@
* @flow strict-local
*/
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {
Int32,
BubblingEventHandler,
Int32,
WithDefault,
} from 'react-native/Libraries/Types/CodegenTypes';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
type OnChangeEvent = $ReadOnly<{|
location: {

View File

@ -8,16 +8,17 @@
* @flow strict-local
*/
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {
Int32,
Float,
BubblingEventHandler,
DirectEventHandler,
Float,
Int32,
WithDefault,
} from 'react-native/Libraries/Types/CodegenTypes';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
type OnChangeEvent = $ReadOnly<{|
value: boolean,

View File

@ -8,13 +8,14 @@
* @flow strict-local
*/
import type {
WithDefault,
Float,
} from 'react-native/Libraries/Types/CodegenTypes';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {
Float,
WithDefault,
} from 'react-native/Libraries/Types/CodegenTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -8,11 +8,12 @@
* @flow strict-local
*/
import type {ImageSource} from 'react-native/Libraries/Image/ImageSource';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {ImageSource} from 'react-native/Libraries/Image/ImageSource';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -8,13 +8,14 @@
* @flow strict-local
*/
import type {
WithDefault,
Int32,
} from 'react-native/Libraries/Types/CodegenTypes';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {
Int32,
WithDefault,
} from 'react-native/Libraries/Types/CodegenTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -8,13 +8,14 @@
* @flow strict-local
*/
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {
BubblingEventHandler,
WithDefault,
} from 'react-native/Libraries/Types/CodegenTypes';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -9,10 +9,11 @@
*/
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {UnsafeMixed} from 'react-native/Libraries/Types/CodegenTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -8,12 +8,13 @@
* @flow strict-local
*/
import type {PointValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';
import type {ImageSource} from 'react-native/Libraries/Image/ImageSource';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {ImageSource} from 'react-native/Libraries/Image/ImageSource';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';
import type {PointValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -9,9 +9,10 @@
*/
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -10,15 +10,16 @@
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import type {ImageSource} from 'react-native/Libraries/Image/ImageSource';
import type {PointValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';
import type {PointValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
import type {
Int32,
Float,
Int32,
WithDefault,
} from 'react-native/Libraries/Types/CodegenTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
type ObjectArrayPropType = $ReadOnly<{|
array: $ReadOnlyArray<string>,

View File

@ -8,10 +8,11 @@
* @flow strict-local
*/
import type {PointValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {PointValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -8,10 +8,11 @@
* @flow strict-local
*/
import type {WithDefault} from 'react-native/Libraries/Types/CodegenTypes';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type {WithDefault} from 'react-native/Libraries/Types/CodegenTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,

View File

@ -9,6 +9,7 @@
*/
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
export type ArrayType = string;

View File

@ -9,6 +9,7 @@
*/
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
export type Boolean = boolean;

View File

@ -9,6 +9,7 @@
*/
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
export type String = string;

View File

@ -9,6 +9,7 @@
*/
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
export type StateType = {|

View File

@ -9,6 +9,7 @@
*/
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
export interface Spec extends TurboModule {

View File

@ -9,6 +9,7 @@
*/
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
export type Number = number;

View File

@ -9,6 +9,7 @@
*/
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
export type GenericObject = Object;

View File

@ -9,6 +9,7 @@
*/
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
export interface Spec extends TurboModule {

View File

@ -11,6 +11,7 @@
'use strict';
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
export type SomeObj = {|

View File

@ -9,6 +9,7 @@
*/
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
export type String = string;

View File

@ -12,6 +12,7 @@ import type {
RootTag,
TurboModule,
} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
type Animal = {|

View File

@ -12,6 +12,7 @@ import type {
RootTag,
TurboModule,
} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
type Animal = {|

View File

@ -12,6 +12,7 @@ import type {
RootTag,
TurboModule,
} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
type Animal = ?{|

View File

@ -12,6 +12,7 @@ import type {
RootTag,
TurboModule,
} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
type Animal = ?{|

View File

@ -12,6 +12,7 @@ import type {
RootTag,
TurboModule,
} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
type Animal = {|

View File

@ -9,6 +9,7 @@
*/
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
export type String = string;

View File

@ -11,8 +11,8 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/components/GenerateComponentDescriptorH');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/components`;

View File

@ -11,8 +11,8 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/components/GenerateComponentHObjCpp');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/components`;

View File

@ -11,8 +11,8 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/components/GenerateEventEmitterCpp');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/components`;

View File

@ -11,8 +11,8 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/components/GenerateEventEmitterH');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/components`;

View File

@ -11,8 +11,8 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/components/GeneratePropsCpp');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/components`;

View File

@ -11,8 +11,8 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/components/GeneratePropsH');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/components`;

View File

@ -11,8 +11,8 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/components/GeneratePropsJavaDelegate');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/components`;

View File

@ -11,8 +11,8 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/components/GeneratePropsJavaInterface');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/components`;

View File

@ -11,8 +11,8 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/components/GenerateShadowNodeCpp');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/components`;

View File

@ -11,8 +11,8 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/components/GenerateShadowNodeH');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/components`;

View File

@ -11,8 +11,8 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/components/GenerateViewConfigJs');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/components`;

View File

@ -11,12 +11,12 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/modules/GenerateModuleCpp');
const fs = require('fs');
import type {SchemaType} from '../../../src/CodegenSchema';
const generator = require('../../../src/generators/modules/GenerateModuleCpp');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/modules`;
const parser = new FlowParser();

View File

@ -11,12 +11,12 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/modules/GenerateModuleH');
const fs = require('fs');
import type {SchemaType} from '../../../src/CodegenSchema';
const generator = require('../../../src/generators/modules/GenerateModuleH');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/modules`;
const parser = new FlowParser();

View File

@ -11,12 +11,12 @@
'use strict';
const {FlowParser} = require('../../../src/parsers/flow/parser');
const generator = require('../../../src/generators/modules/GenerateModuleObjCpp');
const fs = require('fs');
import type {SchemaType} from '../../../src/CodegenSchema';
const generator = require('../../../src/generators/modules/GenerateModuleObjCpp');
const {FlowParser} = require('../../../src/parsers/flow/parser');
const fs = require('fs');
const FIXTURE_DIR = `${__dirname}/../../__test_fixtures__/modules`;
const parser = new FlowParser();

View File

@ -10,10 +10,10 @@
'use strict';
const nullthrows = require('nullthrows');
import type {SchemaType} from './CodegenSchema';
const nullthrows = require('nullthrows');
function getErrors(schema: SchemaType): $ReadOnlyArray<string> {
const errors = new Set<string>();

View File

@ -11,11 +11,11 @@
'use strict';
import type {SchemaType} from '../CodegenSchema.js';
const fixtures = require('../generators/components/__test_fixtures__/fixtures.js');
const schemaValidator = require('../SchemaValidator.js');
import type {SchemaType} from '../CodegenSchema.js';
const simpleProp = {
name: 'disabled',
optional: true,

View File

@ -11,7 +11,7 @@
'use-strict';
const {parseArgs, filterJSFile} = require('../combine-utils.js');
const {filterJSFile, parseArgs} = require('../combine-utils.js');
describe('parseArgs', () => {
const nodeBin = 'node';

View File

@ -12,10 +12,10 @@
'use strict';
const combine = require('./combine-js-to-schema');
const {filterJSFile, parseArgs} = require('./combine-utils');
const fs = require('fs');
const glob = require('glob');
const path = require('path');
const {parseArgs, filterJSFile} = require('./combine-utils');
const {platform, outfile, fileList} = parseArgs(process.argv);

View File

@ -10,9 +10,9 @@
'use strict';
const path = require('path');
const {FlowParser} = require('../../parsers/flow/parser');
const {TypeScriptParser} = require('../../parsers/typescript/parser');
const path = require('path');
const flowParser = new FlowParser();
const typescriptParser = new TypeScriptParser();

View File

@ -16,31 +16,33 @@ TODO:
- ViewConfigs should spread in View's valid attributes
*/
const fs = require('fs');
import type {SchemaType} from '../CodegenSchema';
const schemaValidator = require('../SchemaValidator.js');
const generateComponentDescriptorH = require('./components/GenerateComponentDescriptorH.js');
const generateComponentHObjCpp = require('./components/GenerateComponentHObjCpp.js');
const generateEventEmitterCpp = require('./components/GenerateEventEmitterCpp.js');
const generateEventEmitterH = require('./components/GenerateEventEmitterH.js');
const generatePropsCpp = require('./components/GeneratePropsCpp.js');
const generatePropsH = require('./components/GeneratePropsH.js');
const generatePropsJavaDelegate = require('./components/GeneratePropsJavaDelegate.js');
const generatePropsJavaInterface = require('./components/GeneratePropsJavaInterface.js');
const generateShadowNodeCpp = require('./components/GenerateShadowNodeCpp.js');
const generateShadowNodeH = require('./components/GenerateShadowNodeH.js');
const generateStateCpp = require('./components/GenerateStateCpp.js');
const generateStateH = require('./components/GenerateStateH.js');
const generateModuleH = require('./modules/GenerateModuleH.js');
const generateTests = require('./components/GenerateTests.js');
const generateThirdPartyFabricComponentsProviderH = require('./components/GenerateThirdPartyFabricComponentsProviderH.js');
const generateThirdPartyFabricComponentsProviderObjCpp = require('./components/GenerateThirdPartyFabricComponentsProviderObjCpp.js');
const generateViewConfigJs = require('./components/GenerateViewConfigJs.js');
const generateModuleCpp = require('./modules/GenerateModuleCpp.js');
const generateModuleObjCpp = require('./modules/GenerateModuleObjCpp');
const generateModuleH = require('./modules/GenerateModuleH.js');
const generateModuleJavaSpec = require('./modules/GenerateModuleJavaSpec.js');
const generateModuleJniCpp = require('./modules/GenerateModuleJniCpp.js');
const generateModuleJniH = require('./modules/GenerateModuleJniH.js');
const generatePropsJavaInterface = require('./components/GeneratePropsJavaInterface.js');
const generatePropsJavaDelegate = require('./components/GeneratePropsJavaDelegate.js');
const generateTests = require('./components/GenerateTests.js');
const generateShadowNodeCpp = require('./components/GenerateShadowNodeCpp.js');
const generateShadowNodeH = require('./components/GenerateShadowNodeH.js');
const generateThirdPartyFabricComponentsProviderObjCpp = require('./components/GenerateThirdPartyFabricComponentsProviderObjCpp.js');
const generateThirdPartyFabricComponentsProviderH = require('./components/GenerateThirdPartyFabricComponentsProviderH.js');
const generateViewConfigJs = require('./components/GenerateViewConfigJs.js');
const generateModuleObjCpp = require('./modules/GenerateModuleObjCpp');
const fs = require('fs');
const path = require('path');
const schemaValidator = require('../SchemaValidator.js');
const ALL_GENERATORS = {
generateComponentDescriptorH: generateComponentDescriptorH.generate,
@ -69,8 +71,6 @@ const ALL_GENERATORS = {
generateViewConfigJs: generateViewConfigJs.generate,
};
import type {SchemaType} from '../CodegenSchema';
type LibraryOptions = $ReadOnly<{
libraryName: string,
schema: SchemaType,

View File

@ -11,8 +11,8 @@
'use strict';
const rnCodegen = require('../RNCodegen.js');
const fixture = require('../__test_fixtures__/fixtures.js');
const rnCodegen = require('../RNCodegen.js');
const packageName = 'na';
describe('RNCodegen.generate', () => {

View File

@ -11,26 +11,24 @@
'use strict';
import type {NamedShape, PropTypeAnnotation} from '../../CodegenSchema';
import type {
StringTypeAnnotation,
ReservedPropTypeAnnotation,
ObjectTypeAnnotation,
Int32TypeAnnotation,
FloatTypeAnnotation,
DoubleTypeAnnotation,
BooleanTypeAnnotation,
DoubleTypeAnnotation,
FloatTypeAnnotation,
Int32TypeAnnotation,
ObjectTypeAnnotation,
ReservedPropTypeAnnotation,
StringTypeAnnotation,
} from '../../CodegenSchema';
const {getEnumName} = require('../Utils');
const {
generateStructName,
getCppTypeForAnnotation,
getEnumMaskName,
generateStructName,
getImports,
} = require('./CppHelpers.js');
const {getEnumName} = require('../Utils');
function getNativeTypeFromAnnotation(
componentName: string,
prop:

View File

@ -11,11 +11,11 @@
'use strict';
import type {
NamedShape,
CommandParamTypeAnnotation,
CommandTypeAnnotation,
ComponentShape,
NamedShape,
SchemaType,
CommandParamTypeAnnotation,
} from '../../CodegenSchema';
type FilesOutput = Map<string, string>;

View File

@ -10,18 +10,17 @@
'use strict';
import type {EventTypeShape} from '../../CodegenSchema';
const {generateEventStructName} = require('./CppHelpers');
const {indent} = require('../Utils');
import type {
ComponentShape,
NamedShape,
EventTypeAnnotation,
SchemaType,
NamedShape,
ObjectTypeAnnotation,
SchemaType,
} from '../../CodegenSchema';
const {indent} = require('../Utils');
const {generateEventStructName} = require('./CppHelpers');
// File path -> contents
type FilesOutput = Map<string, string>;

View File

@ -10,24 +10,23 @@
'use strict';
const nullthrows = require('nullthrows');
const {
getImports,
getCppArrayTypeForAnnotation,
getCppTypeForAnnotation,
generateEventStructName,
} = require('./CppHelpers');
const {indent, toSafeCppString} = require('../Utils');
import type {
ComponentShape,
EventTypeAnnotation,
EventTypeShape,
NamedShape,
EventTypeAnnotation,
SchemaType,
} from '../../CodegenSchema';
const {indent, toSafeCppString} = require('../Utils');
const {
generateEventStructName,
getCppArrayTypeForAnnotation,
getCppTypeForAnnotation,
getImports,
} = require('./CppHelpers');
const nullthrows = require('nullthrows');
// File path -> contents
type FilesOutput = Map<string, string>;
type StructsMap = Map<string, string>;

View File

@ -11,6 +11,7 @@
'use strict';
import type {ComponentShape, SchemaType} from '../../CodegenSchema';
const {convertDefaultTypeToString, getImports} = require('./CppHelpers');
// File path -> contents

View File

@ -10,21 +10,6 @@
'use strict';
import type {ComponentShape} from '../../CodegenSchema';
const {
getNativeTypeFromAnnotation,
getLocalImports,
} = require('./ComponentsGeneratorUtils.js');
const {
convertDefaultTypeToString,
getEnumMaskName,
generateStructName,
toIntEnumValueName,
} = require('./CppHelpers.js');
const {getEnumName, toSafeCppString} = require('../Utils');
import type {
ExtendsPropsShape,
NamedShape,
@ -32,6 +17,18 @@ import type {
SchemaType,
} from '../../CodegenSchema';
const {getEnumName, toSafeCppString} = require('../Utils');
const {
getLocalImports,
getNativeTypeFromAnnotation,
} = require('./ComponentsGeneratorUtils.js');
const {
convertDefaultTypeToString,
generateStructName,
getEnumMaskName,
toIntEnumValueName,
} = require('./CppHelpers.js');
// File path -> contents
type FilesOutput = Map<string, string>;
type StructsMap = Map<string, string>;

View File

@ -10,19 +10,19 @@
'use strict';
import type {CommandParamTypeAnnotation} from '../../CodegenSchema';
import type {
NamedShape,
CommandTypeAnnotation,
ComponentShape,
NamedShape,
PropTypeAnnotation,
SchemaType,
} from '../../CodegenSchema';
const {
getImports,
toSafeJavaString,
getInterfaceJavaClassName,
getDelegateJavaClassName,
getImports,
getInterfaceJavaClassName,
toSafeJavaString,
} = require('./JavaHelpers');
// File path -> contents

View File

@ -10,18 +10,18 @@
'use strict';
import type {CommandParamTypeAnnotation} from '../../CodegenSchema';
import type {
NamedShape,
CommandTypeAnnotation,
ComponentShape,
NamedShape,
PropTypeAnnotation,
SchemaType,
} from '../../CodegenSchema';
const {
getImports,
toSafeJavaString,
getInterfaceJavaClassName,
toSafeJavaString,
} = require('./JavaHelpers');
// File path -> contents

View File

@ -11,17 +11,17 @@
'use strict';
import type {
ReservedPropTypeAnnotation,
NamedShape,
ObjectTypeAnnotation,
ArrayTypeAnnotation,
BooleanTypeAnnotation,
StringTypeAnnotation,
DoubleTypeAnnotation,
FloatTypeAnnotation,
Int32TypeAnnotation,
PropTypeAnnotation,
MixedTypeAnnotation,
ArrayTypeAnnotation,
NamedShape,
ObjectTypeAnnotation,
PropTypeAnnotation,
ReservedPropTypeAnnotation,
StringTypeAnnotation,
} from '../../../CodegenSchema';
const {capitalize} = require('../../Utils');

Some files were not shown because too many files have changed in this diff Show More