88 */
99
1010import type { InspectorData , TouchedViewDataAtPoint } from './ReactNativeTypes' ;
11- import type { TransitionTypes } from 'react/src/ReactTransitionType' ;
1211
1312// Modules provided by RN:
1413import {
@@ -35,8 +34,6 @@ import {
3534} from 'react-reconciler/src/ReactEventPriorities' ;
3635import type { Fiber } from 'react-reconciler/src/ReactInternalTypes' ;
3736
38- import { enableProfilerTimer } from 'shared/ReactFeatureFlags' ;
39-
4037import { REACT_CONTEXT_TYPE } from 'shared/ReactSymbols' ;
4138import type { ReactContext } from 'shared/ReactTypes' ;
4239
@@ -112,6 +109,7 @@ function recursivelyUncacheFiberNode(node: Instance | TextInstance) {
112109 }
113110}
114111
112+ export * from 'react-reconciler/src/ReactFiberConfigWithNoViewTransition' ;
115113export * from 'react-reconciler/src/ReactFiberConfigWithNoPersistence' ;
116114export * from 'react-reconciler/src/ReactFiberConfigWithNoHydration' ;
117115export * from 'react-reconciler/src/ReactFiberConfigWithNoScopes' ;
@@ -590,152 +588,6 @@ export function unhideInstance(instance: Instance, props: Props): void {
590588 ) ;
591589}
592590
593- export function applyViewTransitionName (
594- instance : Instance ,
595- name : string ,
596- className : ?string ,
597- ) : void {
598- // Not yet implemented
599- }
600-
601- export function restoreViewTransitionName (
602- instance : Instance ,
603- props : Props ,
604- ) : void {
605- // Not yet implemented
606- }
607-
608- export function cancelViewTransitionName (
609- instance : Instance ,
610- name : string ,
611- props : Props ,
612- ) : void {
613- // Not yet implemented
614- }
615-
616- export function cancelRootViewTransitionName ( rootContainer : Container ) : void {
617- // Not yet implemented
618- }
619-
620- export function restoreRootViewTransitionName ( rootContainer : Container ) : void {
621- // Not yet implemented
622- }
623-
624- export function cloneRootViewTransitionContainer (
625- rootContainer : Container ,
626- ) : Instance {
627- throw new Error ( 'Not implemented.' ) ;
628- }
629-
630- export function removeRootViewTransitionClone (
631- rootContainer : Container ,
632- clone : Instance ,
633- ) : void {
634- throw new Error ( 'Not implemented.' ) ;
635- }
636-
637- export type InstanceMeasurement = null ;
638-
639- export function measureInstance ( instance : Instance ) : InstanceMeasurement {
640- // This heuristic is better implemented at the native layer.
641- return null ;
642- }
643-
644- export function measureClonedInstance ( instance : Instance ) : InstanceMeasurement {
645- return null ;
646- }
647-
648- export function wasInstanceInViewport (
649- measurement : InstanceMeasurement ,
650- ) : boolean {
651- return true ;
652- }
653-
654- export function hasInstanceChanged (
655- oldMeasurement : InstanceMeasurement ,
656- newMeasurement : InstanceMeasurement ,
657- ) : boolean {
658- return false ;
659- }
660-
661- export function hasInstanceAffectedParent (
662- oldMeasurement : InstanceMeasurement ,
663- newMeasurement : InstanceMeasurement ,
664- ) : boolean {
665- return false ;
666- }
667-
668- export function startViewTransition (
669- suspendedState : null | SuspendedState ,
670- rootContainer : Container ,
671- transitionTypes : null | TransitionTypes ,
672- mutationCallback : ( ) = > void ,
673- layoutCallback : ( ) = > void ,
674- afterMutationCallback : ( ) = > void ,
675- spawnedWorkCallback : ( ) = > void ,
676- passiveCallback : ( ) = > mixed ,
677- errorCallback : mixed => void ,
678- blockedCallback : string => void , // Profiling-only
679- finishedAnimation : ( ) = > void , // Profiling-only
680- ) : null | RunningViewTransition {
681- mutationCallback ( ) ;
682- layoutCallback ( ) ;
683- // Skip afterMutationCallback(). We don't need it since we're not animating.
684- spawnedWorkCallback ( ) ;
685- if ( enableProfilerTimer ) {
686- finishedAnimation ( ) ;
687- }
688- // Skip passiveCallback(). Spawned work will schedule a task.
689- return null ;
690- }
691-
692- export type RunningViewTransition = null ;
693-
694- export function startGestureTransition (
695- suspendedState : null | SuspendedState ,
696- rootContainer : Container ,
697- timeline : GestureTimeline ,
698- rangeStart : number ,
699- rangeEnd : number ,
700- transitionTypes : null | TransitionTypes ,
701- mutationCallback : ( ) = > void ,
702- animateCallback : ( ) = > void ,
703- errorCallback : mixed => void ,
704- finishedAnimation : ( ) = > void , // Profiling-only
705- ) : null | RunningViewTransition {
706- mutationCallback ( ) ;
707- animateCallback ( ) ;
708- if ( enableProfilerTimer ) {
709- finishedAnimation ( ) ;
710- }
711- return null ;
712- }
713-
714- export function stopViewTransition ( transition : RunningViewTransition ) { }
715-
716- export function addViewTransitionFinishedListener (
717- transition : RunningViewTransition ,
718- callback : ( ) = > void ,
719- ) {
720- callback ( ) ;
721- }
722-
723- export type ViewTransitionInstance = null | { name : string , ...} ;
724-
725- export function createViewTransitionInstance (
726- name : string ,
727- ) : ViewTransitionInstance {
728- return null ;
729- }
730-
731- export type GestureTimeline = null ;
732-
733- export function getCurrentGestureOffset ( provider : GestureTimeline ) : number {
734- throw new Error (
735- 'startGestureTransition is not yet supported in React Native.' ,
736- ) ;
737- }
738-
739591export function clearContainer ( container : Container ) : void {
740592 // TODO Implement this for React Native
741593 // UIManager does not expose a "remove all" type method.
0 commit comments