Skip to content

Commit 6f84763

Browse files
authored
[react-interactions] Rename Flare APIs to deprecated and remove from RN (#17644)
1 parent 66ee575 commit 6f84763

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ReactTestHostConfig.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type {
1313
ReactFundamentalComponentInstance,
1414
} from 'shared/ReactTypes';
1515

16-
import {enableFlareAPI} from 'shared/ReactFeatureFlags';
16+
import {enableDeprecatedFlareAPI} from 'shared/ReactFeatureFlags';
1717

1818
export type Type = string;
1919
export type Props = Object;
@@ -147,7 +147,7 @@ export function createInstance(
147147
internalInstanceHandle: Object,
148148
): Instance {
149149
let propsToUse = props;
150-
if (enableFlareAPI) {
150+
if (enableDeprecatedFlareAPI) {
151151
if (props.DEPRECATED_flareListeners != null) {
152152
// We want to remove the "DEPRECATED_flareListeners" prop
153153
// as we don't want it in the test renderer's
@@ -214,7 +214,7 @@ export function createTextInstance(
214214
internalInstanceHandle: Object,
215215
): TextInstance {
216216
if (__DEV__) {
217-
if (enableFlareAPI) {
217+
if (enableDeprecatedFlareAPI) {
218218
if (hostContext === EVENT_COMPONENT_CONTEXT) {
219219
console.error(
220220
'validateDOMNesting: React event components cannot have text DOM nodes as children. ' +
@@ -300,7 +300,7 @@ export function unhideTextInstance(
300300
textInstance.isHidden = false;
301301
}
302302

303-
export function mountResponderInstance(
303+
export function DEPRECATED_mountResponderInstance(
304304
responder: ReactEventResponder<any, any>,
305305
responderInstance: ReactEventResponderInstance<any, any>,
306306
props: Object,
@@ -310,7 +310,7 @@ export function mountResponderInstance(
310310
// noop
311311
}
312312

313-
export function unmountResponderInstance(
313+
export function DEPRECATED_unmountResponderInstance(
314314
responderInstance: ReactEventResponderInstance<any, any>,
315315
): void {
316316
// noop

0 commit comments

Comments
 (0)