Back out "Add RNTester box sizing example and e2e test" (#46795)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/46795

Original commit changeset: d7bb6f115bca

Original Phabricator Diff: D63471840

See previous diff, there were some problems

Changelog: [Internal]

Differential Revision: D63777438

fbshipit-source-id: ea9f370eade10282fcee84d07d709b549dde1b6d
This commit is contained in:
Joe Vilches authored and Facebook GitHub Bot committed 2024-10-02 15:56:38 -07:00
1 parent 62b7396bf4
commit 32dd52e027
1 file changed
-36
@@ -668,37 +668,6 @@ function OutlineExample(): React.Node {
);
}
function BoxSizingExample(): React.Node {
const styles = StyleSheet.create({
boxSizingBox: {
padding: 5,
backgroundColor: 'green',
borderWidth: 5,
margin: 10,
width: 50,
height: 25,
},
boxSizingChild: {
backgroundColor: 'red',
width: '100%',
height: '100%',
},
});
return (
<View testID={'view-test-box-sizing'}>
<Text>Content box 50x25</Text>
<View style={[styles.boxSizingBox, {boxSizing: 'content-box'}]}>
<View style={styles.boxSizingChild} />
</View>
<Text>Border box 50x25</Text>
<View style={[styles.boxSizingBox, {boxSizing: 'border-box'}]}>
<View style={styles.boxSizingChild} />
</View>
</View>
);
}
export default ({
title: 'View',
documentationURL: 'https://reactnative.dev/docs/view',
@@ -1343,10 +1312,5 @@ export default ({
name: 'outline',
render: OutlineExample,
},
{
title: 'Box Sizing',
name: 'box-sizing',
render: BoxSizingExample,
},
],
}: RNTesterModule);