-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: black screen when CameraDisclosureModal is opened (#1021)
Signed-off-by: Caroline Lucas Calheirani <[email protected]> Co-authored-by: Bryce McMath <[email protected]>
- Loading branch information
1 parent
3344173
commit 4e1ecf3
Showing
6 changed files
with
122 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
...e/__tests__/screens/LoadingModal.test.tsx → ...__tests__/components/LoadingView.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
packages/legacy/core/__tests__/components/__snapshots__/LoadingView.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`displays loading screen renders correctly 1`] = ` | ||
<RNCSafeAreaView | ||
style={ | ||
Array [ | ||
Object { | ||
"alignItems": "center", | ||
"backgroundColor": "#000000", | ||
"flexDirection": "column", | ||
"justifyContent": "center", | ||
"minHeight": 1334, | ||
}, | ||
] | ||
} | ||
> | ||
<View | ||
style={ | ||
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 { | ||
"position": "absolute", | ||
"transform": Array [ | ||
Object { | ||
"rotate": "0deg", | ||
}, | ||
], | ||
} | ||
} | ||
> | ||
< | ||
fill="#FFFFFF" | ||
height={200} | ||
width={200} | ||
/> | ||
</View> | ||
</View> | ||
</RNCSafeAreaView> | ||
`; |
67 changes: 0 additions & 67 deletions
67
packages/legacy/core/__tests__/screens/__snapshots__/LoadingModal.test.tsx.snap
This file was deleted.
Oops, something went wrong.
96 changes: 45 additions & 51 deletions
96
packages/legacy/core/__tests__/screens/__snapshots__/Scan.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
`; |