From 5fa3807c343c97280044ff632289b78031efc53c Mon Sep 17 00:00:00 2001 From: Paige Sun Date: Wed, 19 Jan 2022 16:27:21 -0800 Subject: [PATCH] Fix SnapshotExample in rn-tester Summary: Changelog: [General][Fix] Fix SnapshotExample in rn-tester Before this diff, the has no height. You can tell because the backgroundColor of is black but it doesn't show up on this surface. Reviewed By: RSNara Differential Revision: D33649085 fbshipit-source-id: 1b0fa0a82bce29923afee000d0828cbd90845abf --- packages/rn-tester/js/examples/Snapshot/SnapshotExample.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/rn-tester/js/examples/Snapshot/SnapshotExample.js b/packages/rn-tester/js/examples/Snapshot/SnapshotExample.js index ef051b7b289..854cbbf4477 100644 --- a/packages/rn-tester/js/examples/Snapshot/SnapshotExample.js +++ b/packages/rn-tester/js/examples/Snapshot/SnapshotExample.js @@ -21,7 +21,7 @@ class ScreenshotExample extends React.Component<{...}, $FlowFixMeState> { render() { return ( - + Click to take a screenshot @@ -38,13 +38,15 @@ class ScreenshotExample extends React.Component<{...}, $FlowFixMeState> { } const style = StyleSheet.create({ + container: { + flex: 1, + }, button: { marginBottom: 10, fontWeight: '500', }, image: { flex: 1, - height: 300, resizeMode: 'contain', backgroundColor: 'black', },