Skip to content

Commit f8996f1

Browse files
Luna Weifacebook-github-bot
authored andcommitted
Fix handling across elements styling
Summary: Changelog: [Internal] Adjust styling so test works on mobile screen and verified Android is passing Reviewed By: mdvacca Differential Revision: D40247320 fbshipit-source-id: c39bff510900393af7696e92e1f846999eb0ced3
1 parent 53f1f6b commit f8996f1

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

packages/rn-tester/js/examples/Experimental/PlatformTest/RNTesterPlatformTest.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ export default function RNTesterPlatformTest(props: Props): React.MixedElement {
3939
<View style={styles.root}>
4040
<View style={styles.testcaseContainer}>
4141
<Text style={[styles.textBlock, styles.title]}>{title}</Text>
42-
<Text style={[styles.textBlock, styles.description]}>
43-
{description}
44-
</Text>
42+
{description !== '' ? (
43+
<Text style={[styles.textBlock, styles.description]}>
44+
{description}
45+
</Text>
46+
) : null}
4547
<RNTesterPlatformTestInstructions
4648
instructions={instructions}
4749
style={[styles.instructions, styles.block]}

packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerMoveAcross.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const styles = StyleSheet.create({
2323
width: 200,
2424
},
2525
b: {
26-
marginLeft: 100,
26+
marginLeft: 50,
2727
height: 120,
2828
width: 200,
2929
backgroundColor: 'green',
@@ -32,8 +32,8 @@ const styles = StyleSheet.create({
3232
height: 120,
3333
width: 200,
3434
backgroundColor: 'yellow',
35-
marginVertical: 100,
36-
marginLeft: 100,
35+
marginVertical: 10,
36+
marginLeft: 50,
3737
},
3838
a1: {
3939
backgroundColor: 'blue',
@@ -42,7 +42,7 @@ const styles = StyleSheet.create({
4242
},
4343
b1: {
4444
padding: 1,
45-
marginLeft: 100,
45+
marginLeft: 50,
4646
height: 120,
4747
width: 200,
4848
backgroundColor: 'green',
@@ -51,7 +51,7 @@ const styles = StyleSheet.create({
5151
height: 120,
5252
width: 200,
5353
backgroundColor: 'black',
54-
marginLeft: 100,
54+
marginLeft: 50,
5555
},
5656
});
5757

0 commit comments

Comments
 (0)