@@ -2,7 +2,6 @@ import * as React from 'react';
22import type { TextInputProps } from 'react-native' ;
33import {
44 PanResponder ,
5- Platform ,
65 Pressable ,
76 ScrollView ,
87 Text ,
@@ -192,21 +191,18 @@ describe('fireEvent.press', () => {
192191 expect ( onPress ) . toHaveBeenCalled ( ) ;
193192 } ) ;
194193
195- ( Platform . OS === 'android' ? test : test . skip ) (
196- 'works on TouchableNativeFeedback' ,
197- async ( ) => {
198- const onPress = jest . fn ( ) ;
199- await render (
200- < TouchableNativeFeedback testID = "touchable" onPress = { onPress } >
201- < View >
202- < Text > Press me</ Text >
203- </ View >
204- </ TouchableNativeFeedback > ,
205- ) ;
206- await fireEvent . press ( screen . getByTestId ( 'touchable' ) ) ;
207- expect ( onPress ) . toHaveBeenCalled ( ) ;
208- } ,
209- ) ;
194+ test ( 'works on TouchableNativeFeedback' , async ( ) => {
195+ const onPress = jest . fn ( ) ;
196+ await render (
197+ < TouchableNativeFeedback testID = "touchable" onPress = { onPress } >
198+ < View >
199+ < Text > Press me</ Text >
200+ </ View >
201+ </ TouchableNativeFeedback > ,
202+ ) ;
203+ await fireEvent . press ( screen . getByTestId ( 'touchable' ) ) ;
204+ expect ( onPress ) . toHaveBeenCalled ( ) ;
205+ } ) ;
210206} ) ;
211207
212208describe ( 'fireEvent.changeText' , ( ) => {
@@ -699,10 +695,7 @@ describe('responder system', () => {
699695 test ( 'both responder handlers can be evaluated together' , async ( ) => {
700696 const onPress = jest . fn ( ) ;
701697 await render (
702- < View
703- onStartShouldSetResponder = { ( ) => true }
704- onMoveShouldSetResponder = { ( ) => true }
705- >
698+ < View onStartShouldSetResponder = { ( ) => true } onMoveShouldSetResponder = { ( ) => true } >
706699 < Pressable onPress = { onPress } >
707700 < Text testID = "text" > Press</ Text >
708701 </ Pressable >
0 commit comments