mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
0a7cf20b22
Stacked on #32785. This is now replaced by `startGestureTransition` added in #32785. I also renamed the flag from `enableSwipeTransition` to `enableGestureTransition` to correspond to the new name.
61 lines
2.1 KiB
JavaScript
61 lines
2.1 KiB
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
// Renderers that don't support mutation
|
|
// can re-export everything from this module.
|
|
|
|
function shim(...args: any): empty {
|
|
throw new Error(
|
|
'The current renderer does not support mutation. ' +
|
|
'This error is likely caused by a bug in React. ' +
|
|
'Please file an issue.',
|
|
);
|
|
}
|
|
|
|
// Mutation (when unsupported)
|
|
export const supportsMutation = false;
|
|
export const cloneMutableInstance = shim;
|
|
export const cloneMutableTextInstance = shim;
|
|
export const appendChild = shim;
|
|
export const appendChildToContainer = shim;
|
|
export const commitTextUpdate = shim;
|
|
export const commitMount = shim;
|
|
export const commitUpdate = shim;
|
|
export const insertBefore = shim;
|
|
export const insertInContainerBefore = shim;
|
|
export const removeChild = shim;
|
|
export const removeChildFromContainer = shim;
|
|
export const resetTextContent = shim;
|
|
export const hideInstance = shim;
|
|
export const hideTextInstance = shim;
|
|
export const unhideInstance = shim;
|
|
export const unhideTextInstance = shim;
|
|
export const clearContainer = shim;
|
|
export const applyViewTransitionName = shim;
|
|
export const restoreViewTransitionName = shim;
|
|
export const cancelViewTransitionName = shim;
|
|
export const cancelRootViewTransitionName = shim;
|
|
export const restoreRootViewTransitionName = shim;
|
|
export const cloneRootViewTransitionContainer = shim;
|
|
export const removeRootViewTransitionClone = shim;
|
|
export type InstanceMeasurement = null;
|
|
export const measureInstance = shim;
|
|
export const measureClonedInstance = shim;
|
|
export const wasInstanceInViewport = shim;
|
|
export const hasInstanceChanged = shim;
|
|
export const hasInstanceAffectedParent = shim;
|
|
export const startViewTransition = shim;
|
|
export type RunningViewTransition = null;
|
|
export const startGestureTransition = shim;
|
|
export const stopViewTransition = shim;
|
|
export type ViewTransitionInstance = null | {name: string, ...};
|
|
export const createViewTransitionInstance = shim;
|
|
export type GestureTimeline = any;
|
|
export const getCurrentGestureOffset = shim;
|