File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -224,11 +224,12 @@ class Dialog extends BaseComponent {
224
224
225
225
render = ( ) => {
226
226
const { orientationKey, modalVisibility} = this . state ;
227
- const { supportedOrientations, accessibilityLabel} = this . getThemeProps ( ) ;
227
+ const { testID , supportedOrientations, accessibilityLabel} = this . getThemeProps ( ) ;
228
228
229
229
return (
230
230
< Modal
231
231
key = { orientationKey }
232
+ testID = { `${ testID } .modal` }
232
233
transparent
233
234
visible = { modalVisibility }
234
235
animationType = { 'none' }
Original file line number Diff line number Diff line change @@ -52,9 +52,8 @@ export default class Modal extends BaseComponent {
52
52
< View
53
53
useSafeArea = { isScreenReaderEnabled }
54
54
style = { ! isScreenReaderEnabled && [ styles . touchableOverlay , { backgroundColor : overlayBackgroundColor } ] }
55
- testID = { testID }
56
55
>
57
- < TouchableWithoutFeedback { ...accessibilityProps } onPress = { onBackgroundPress } >
56
+ < TouchableWithoutFeedback { ...accessibilityProps } onPress = { onBackgroundPress } testID = { testID } >
58
57
< View style = { isScreenReaderEnabled ? styles . accessibleOverlayView : styles . overlayView } />
59
58
</ TouchableWithoutFeedback >
60
59
</ View >
You can’t perform that action at this time.
0 commit comments