mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Changelog: [Fabric][iOS][Fix] Remove use of bridge from Modal by dismissing Modal with visible prop Reviewed By: sammy-SC Differential Revision: D28074326 fbshipit-source-id: 0278bfb031db802b59429c553ac62d83838f4cc9
83 lines
1.4 KiB
Plaintext
83 lines
1.4 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<Modal /> should render as <Modal> when mocked 1`] = `
|
|
<Modal
|
|
hardwareAccelerated={false}
|
|
visible={true}
|
|
>
|
|
<View />
|
|
</Modal>
|
|
`;
|
|
|
|
exports[`<Modal /> should render as <RCTModalHostView> when not mocked 1`] = `
|
|
<RCTModalHostView
|
|
animationType="none"
|
|
hardwareAccelerated={false}
|
|
identifier={1}
|
|
onDismiss={[Function]}
|
|
onStartShouldSetResponder={[Function]}
|
|
presentationStyle="fullScreen"
|
|
style={
|
|
Object {
|
|
"position": "absolute",
|
|
}
|
|
}
|
|
visible={true}
|
|
>
|
|
<View
|
|
collapsable={false}
|
|
style={
|
|
Array [
|
|
Object {
|
|
"flex": 1,
|
|
"left": 0,
|
|
"top": 0,
|
|
},
|
|
Object {
|
|
"backgroundColor": "white",
|
|
},
|
|
]
|
|
}
|
|
>
|
|
<View
|
|
pointerEvents="box-none"
|
|
style={
|
|
Object {
|
|
"flex": 1,
|
|
}
|
|
}
|
|
>
|
|
<View
|
|
collapsable={true}
|
|
pointerEvents="box-none"
|
|
style={
|
|
Object {
|
|
"flex": 1,
|
|
}
|
|
}
|
|
>
|
|
<View />
|
|
</View>
|
|
</View>
|
|
</View>
|
|
</RCTModalHostView>
|
|
`;
|
|
|
|
exports[`<Modal /> should shallow render as <Modal> when mocked 1`] = `
|
|
<Modal
|
|
hardwareAccelerated={false}
|
|
visible={true}
|
|
>
|
|
<View />
|
|
</Modal>
|
|
`;
|
|
|
|
exports[`<Modal /> should shallow render as <Modal> when not mocked 1`] = `
|
|
<Modal
|
|
hardwareAccelerated={false}
|
|
visible={true}
|
|
>
|
|
<View />
|
|
</Modal>
|
|
`;
|