@@ -40,6 +40,7 @@ describe('created with ReactFabric called with ReactNative', () => {
4040require ( 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface' ) . getNativeTagFromPublicInstance ;
4141} ) ;
4242
43+ // @gate !disableLegacyMode
4344it ( 'find Fabric instances with the RN renderer' , ( ) => {
4445const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
4546validAttributes : { title : true } ,
@@ -60,6 +61,7 @@ describe('created with ReactFabric called with ReactNative', () => {
6061expect ( getNativeTagFromPublicInstance ( instance ) ) . toBe ( 2 ) ;
6162} ) ;
6263
64+ // @gate !disableLegacyMode
6365it ( 'find Fabric nodes with the RN renderer' , ( ) => {
6466const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
6567validAttributes : { title : true } ,
@@ -80,6 +82,7 @@ describe('created with ReactFabric called with ReactNative', () => {
8082expect ( handle ) . toBe ( 2 ) ;
8183} ) ;
8284
85+ // @gate !disableLegacyMode
8386it ( 'dispatches commands on Fabric nodes with the RN renderer' , ( ) => {
8487nativeFabricUIManager . dispatchCommand . mockClear ( ) ;
8588const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
@@ -101,6 +104,7 @@ describe('created with ReactFabric called with ReactNative', () => {
101104expect ( UIManager . dispatchViewManagerCommand ) . not . toBeCalled ( ) ;
102105} ) ;
103106
107+ // @gate !disableLegacyMode
104108it ( 'dispatches sendAccessibilityEvent on Fabric nodes with the RN renderer' , ( ) => {
105109nativeFabricUIManager . sendAccessibilityEvent . mockClear ( ) ;
106110const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
@@ -143,6 +147,7 @@ describe('created with ReactNative called with ReactFabric', () => {
143147. ReactNativeViewConfigRegistry . register ;
144148} ) ;
145149
150+ // @gate !disableLegacyMode
146151it ( 'find Paper instances with the Fabric renderer' , ( ) => {
147152const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
148153validAttributes : { title : true } ,
@@ -163,6 +168,7 @@ describe('created with ReactNative called with ReactFabric', () => {
163168expect ( instance . _nativeTag ) . toBe ( 3 ) ;
164169} ) ;
165170
171+ // @gate !disableLegacyMode
166172it ( 'find Paper nodes with the Fabric renderer' , ( ) => {
167173const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
168174validAttributes : { title : true } ,
@@ -183,6 +189,7 @@ describe('created with ReactNative called with ReactFabric', () => {
183189expect ( handle ) . toBe ( 3 ) ;
184190} ) ;
185191
192+ // @gate !disableLegacyMode
186193it ( 'dispatches commands on Paper nodes with the Fabric renderer' , ( ) => {
187194UIManager . dispatchViewManagerCommand . mockReset ( ) ;
188195const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
@@ -205,6 +212,7 @@ describe('created with ReactNative called with ReactFabric', () => {
205212expect ( nativeFabricUIManager . dispatchCommand ) . not . toBeCalled ( ) ;
206213} ) ;
207214
215+ // @gate !disableLegacyMode
208216it ( 'dispatches sendAccessibilityEvent on Paper nodes with the Fabric renderer' , ( ) => {
209217ReactNativePrivateInterface . legacySendAccessibilityEvent . mockReset ( ) ;
210218const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
0 commit comments