mirror of
https://github.com/facebook/react-native.git
synced 2024-11-22 06:29:46 +00:00
Move ReactFabricPublicInstance out of the Renderer directory
Summary: The `Renderer` directory is supposed to be only for files synced from the React repo. This moves the `public` directory that was added to it recently to the `ReactNative` directory. Changelog: [internal] bypass-github-export-checks Reviewed By: sammy-SC Differential Revision: D44421951 fbshipit-source-id: d098970b80cd467b5c772c3ae91ce716be373484
This commit is contained in:
parent
871f294bcb
commit
4e0dfedd51
@ -28,8 +28,7 @@ module.exports = {
|
||||
testPathIgnorePatterns: [
|
||||
'/node_modules/',
|
||||
'<rootDir>/packages/react-native/template',
|
||||
'<rootDir>/packages/react-native/Libraries/Renderer/implementations',
|
||||
'<rootDir>/packages/react-native/Libraries/Renderer/shims',
|
||||
'<rootDir>/packages/react-native/Libraries/Renderer',
|
||||
'<rootDir>/packages/rn-tester/e2e',
|
||||
],
|
||||
transformIgnorePatterns: ['node_modules/(?!@react-native/)'],
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
import {isPublicInstance as isFabricPublicInstance} from '../Renderer/public/ReactFabricPublicInstanceUtils';
|
||||
import {isPublicInstance as isFabricPublicInstance} from '../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstanceUtils';
|
||||
import useRefEffect from '../Utilities/useRefEffect';
|
||||
import {AnimatedEvent} from './AnimatedEvent';
|
||||
import NativeAnimatedHelper from './NativeAnimatedHelper';
|
||||
|
@ -11,7 +11,7 @@
|
||||
import type {LayoutEvent} from '../../Types/CoreEventTypes';
|
||||
|
||||
import Animated from '../../Animated/Animated';
|
||||
import {isPublicInstance as isFabricPublicInstance} from '../../Renderer/public/ReactFabricPublicInstanceUtils';
|
||||
import {isPublicInstance as isFabricPublicInstance} from '../../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstanceUtils';
|
||||
import StyleSheet from '../../StyleSheet/StyleSheet';
|
||||
import Platform from '../../Utilities/Platform';
|
||||
import useMergeRefs from '../../Utilities/useMergeRefs';
|
||||
|
@ -16,12 +16,12 @@ import type {
|
||||
MeasureLayoutOnSuccessCallback,
|
||||
MeasureOnSuccessCallback,
|
||||
ViewConfig,
|
||||
} from '../shims/ReactNativeTypes';
|
||||
} from '../../Renderer/shims/ReactNativeTypes';
|
||||
import type {ElementRef} from 'react';
|
||||
|
||||
import TextInputState from '../../Components/TextInput/TextInputState';
|
||||
import {getFabricUIManager} from '../../ReactNative/FabricUIManager';
|
||||
import {getNodeFromInternalInstanceHandle} from '../shims/ReactFabric';
|
||||
import {getNodeFromInternalInstanceHandle} from '../../Renderer/shims/ReactFabric';
|
||||
import {getFabricUIManager} from '../FabricUIManager';
|
||||
import {create} from './ReactNativeAttributePayload';
|
||||
import nullthrows from 'nullthrows';
|
||||
|
@ -8,7 +8,7 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import type {AttributeConfiguration} from '../shims/ReactNativeTypes';
|
||||
import type {AttributeConfiguration} from '../../Renderer/shims/ReactNativeTypes';
|
||||
|
||||
import flattenStyle from '../../StyleSheet/flattenStyle';
|
||||
import deepDiffer from '../../Utilities/differ/deepDiffer';
|
@ -9,15 +9,15 @@
|
||||
* @oncall react_native
|
||||
*/
|
||||
|
||||
import type {HostComponent} from '../../shims/ReactNativeTypes';
|
||||
import type {HostComponent} from '../../../Renderer/shims/ReactNativeTypes';
|
||||
|
||||
import * as React from 'react';
|
||||
import {act} from 'react-test-renderer';
|
||||
|
||||
const TextInputState = require('../../../Components/TextInput/TextInputState');
|
||||
const FabricUIManager = require('../../../ReactNative/FabricUIManager');
|
||||
const ReactFabric = require('../../shims/ReactFabric');
|
||||
const ReactNativeViewConfigRegistry = require('../../shims/ReactNativeViewConfigRegistry');
|
||||
const ReactFabric = require('../../../Renderer/shims/ReactFabric');
|
||||
const ReactNativeViewConfigRegistry = require('../../../Renderer/shims/ReactNativeViewConfigRegistry');
|
||||
const nullthrows = require('nullthrows');
|
||||
|
||||
jest.mock('../../../ReactNative/FabricUIManager', () =>
|
@ -16,16 +16,16 @@ import typeof RawEventEmitter from '../Core/RawEventEmitter';
|
||||
import typeof ReactFiberErrorDialog from '../Core/ReactFiberErrorDialog';
|
||||
import typeof RCTEventEmitter from '../EventEmitter/RCTEventEmitter';
|
||||
import typeof CustomEvent from '../Events/CustomEvent';
|
||||
import typeof UIManager from '../ReactNative/UIManager';
|
||||
import typeof {
|
||||
createPublicInstance,
|
||||
getNativeTagFromPublicInstance,
|
||||
getNodeFromPublicInstance,
|
||||
} from '../Renderer/public/ReactFabricPublicInstance';
|
||||
} from '../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance';
|
||||
import typeof {
|
||||
create as createAttributePayload,
|
||||
diff as diffAttributePayloads,
|
||||
} from '../Renderer/public/ReactNativeAttributePayload';
|
||||
} from '../ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload';
|
||||
import typeof UIManager from '../ReactNative/UIManager';
|
||||
import typeof ReactNativeViewConfigRegistry from '../Renderer/shims/ReactNativeViewConfigRegistry';
|
||||
import typeof flattenStyle from '../StyleSheet/flattenStyle';
|
||||
import type {DangerouslyImpreciseStyleProp} from '../StyleSheet/StyleSheet';
|
||||
@ -83,21 +83,23 @@ module.exports = {
|
||||
return require('../Events/CustomEvent').default;
|
||||
},
|
||||
get createAttributePayload(): createAttributePayload {
|
||||
return require('../Renderer/public/ReactNativeAttributePayload').create;
|
||||
return require('../ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload')
|
||||
.create;
|
||||
},
|
||||
get diffAttributePayloads(): diffAttributePayloads {
|
||||
return require('../Renderer/public/ReactNativeAttributePayload').diff;
|
||||
return require('../ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload')
|
||||
.diff;
|
||||
},
|
||||
get createPublicInstance(): createPublicInstance {
|
||||
return require('../Renderer/public/ReactFabricPublicInstance')
|
||||
return require('../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance')
|
||||
.createPublicInstance;
|
||||
},
|
||||
get getNativeTagFromPublicInstance(): getNativeTagFromPublicInstance {
|
||||
return require('../Renderer/public/ReactFabricPublicInstance')
|
||||
return require('../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance')
|
||||
.getNativeTagFromPublicInstance;
|
||||
},
|
||||
get getNodeFromPublicInstance(): getNodeFromPublicInstance {
|
||||
return require('../Renderer/public/ReactFabricPublicInstance')
|
||||
return require('../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance')
|
||||
.getNodeFromPublicInstance;
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user