Skip to content

Commit

Permalink
fix black screen when CameraDisclosureModal is opened
Browse files Browse the repository at this point in the history
Signed-off-by: Caroline Lucas Calheirani <[email protected]>
  • Loading branch information
CarolineLCa committed Nov 3, 2023
1 parent 4ceef79 commit f0d3b6c
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 108 deletions.
10 changes: 4 additions & 6 deletions packages/legacy/core/App/components/modals/LoadingModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Modal, StyleSheet, useWindowDimensions } from 'react-native'
import { StyleSheet, useWindowDimensions } from 'react-native'
import { SafeAreaView } from 'react-native-safe-area-context'

import { useAnimatedComponents } from '../../contexts/animated-components'
Expand All @@ -20,11 +20,9 @@ const LoadingModal: React.FC = () => {
})

return (
<Modal visible={true} transparent={true}>
<SafeAreaView style={[styles.container]}>
<LoadingIndicator />
</SafeAreaView>
</Modal>
<SafeAreaView style={[styles.container]}>
<LoadingIndicator />
</SafeAreaView>
)
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,67 +1,61 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`displays loading screen renders correctly 1`] = `
<Modal
hardwareAccelerated={false}
transparent={true}
visible={true}
<RNCSafeAreaView
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "#000000",
"flexDirection": "column",
"justifyContent": "center",
"minHeight": 1334,
},
]
}
>
<RNCSafeAreaView
<View
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "#000000",
"flexDirection": "column",
"justifyContent": "center",
"minHeight": 1334,
},
]
Object {
"alignItems": "center",
"justifyContent": "center",
}
}
testID="com.ariesbifold:id/LoadingActivityIndicator"
>
<Image
source={
Object {
"default": "",
}
}
style={
Object {
"height": "33%",
"width": "33%",
}
}
testID="com.ariesbifold:id/LoadingActivityIndicatorImage"
/>
<View
collapsable={false}
style={
Object {
"alignItems": "center",
"justifyContent": "center",
"position": "absolute",
"transform": Array [
Object {
"rotate": "0deg",
},
],
}
}
testID="com.ariesbifold:id/LoadingActivityIndicator"
>
<Image
source={
Object {
"default": "",
}
}
style={
Object {
"height": "33%",
"width": "33%",
}
}
testID="com.ariesbifold:id/LoadingActivityIndicatorImage"
<
fill="#FFFFFF"
height={200}
width={200}
/>
<View
collapsable={false}
style={
Object {
"position": "absolute",
"transform": Array [
Object {
"rotate": "0deg",
},
],
}
}
>
<
fill="#FFFFFF"
height={200}
width={200}
/>
</View>
</View>
</RNCSafeAreaView>
</Modal>
</View>
</RNCSafeAreaView>
`;
Original file line number Diff line number Diff line change
@@ -1,67 +1,61 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Scan Screen Renders correctly 1`] = `
<Modal
hardwareAccelerated={false}
transparent={true}
visible={true}
<RNCSafeAreaView
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "#000000",
"flexDirection": "column",
"justifyContent": "center",
"minHeight": 1334,
},
]
}
>
<RNCSafeAreaView
<View
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "#000000",
"flexDirection": "column",
"justifyContent": "center",
"minHeight": 1334,
},
]
Object {
"alignItems": "center",
"justifyContent": "center",
}
}
testID="com.ariesbifold:id/LoadingActivityIndicator"
>
<Image
source={
Object {
"default": "",
}
}
style={
Object {
"height": "33%",
"width": "33%",
}
}
testID="com.ariesbifold:id/LoadingActivityIndicatorImage"
/>
<View
collapsable={false}
style={
Object {
"alignItems": "center",
"justifyContent": "center",
"position": "absolute",
"transform": Array [
Object {
"rotate": "0deg",
},
],
}
}
testID="com.ariesbifold:id/LoadingActivityIndicator"
>
<Image
source={
Object {
"default": "",
}
}
style={
Object {
"height": "33%",
"width": "33%",
}
}
testID="com.ariesbifold:id/LoadingActivityIndicatorImage"
<
fill="#FFFFFF"
height={200}
width={200}
/>
<View
collapsable={false}
style={
Object {
"position": "absolute",
"transform": Array [
Object {
"rotate": "0deg",
},
],
}
}
>
<
fill="#FFFFFF"
height={200}
width={200}
/>
</View>
</View>
</RNCSafeAreaView>
</Modal>
</View>
</RNCSafeAreaView>
`;

0 comments on commit f0d3b6c

Please sign in to comment.