Skip to content

Commit 25f7b0e

Browse files
zhongwuzwfacebook-github-bot
authored andcommitted
Fix SectionList layout of RNTester on iOS (#23119)
Summary: Changelog: ---------- [iOS] [Fixed] - Fix SectionList layout of RNTester on iOS Pull Request resolved: #23119 Differential Revision: D13781561 Pulled By: cpojer fbshipit-source-id: 9cc89c76a4139fe419c61a55b02a8a2992e76f4e
1 parent 5ed31ce commit 25f7b0e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Libraries/ART/ARTCGFloatArray.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// A little helper to make sure we have the right memory allocation ready for use.
99
// We assume that we will only this in one place so no reference counting is necessary.
10-
// Needs to be freed when dealloced.
10+
// Needs to be freed when deallocated.
1111

1212
// This is fragile since this relies on these values not getting reused. Consider
1313
// wrapping these in an Obj-C class or some ARC hackery to get refcounting.

Libraries/ART/ARTTextFrame.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
// A little helper to make sure we have a set of lines including width ready for use.
1111
// We assume that we will only this in one place so no reference counting is necessary.
12-
// Needs to be freed when dealloced.
12+
// Needs to be freed when deallocated.
1313

1414
// This is fragile since this relies on these values not getting reused. Consider
1515
// wrapping these in an Obj-C class or some ARC hackery to get refcounting.

RNTester/js/RNTesterExampleFilter.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class RNTesterExampleFilter extends React.Component<Props, State> {
5353
}));
5454

5555
return (
56-
<View>
56+
<View style={styles.container}>
5757
{this._renderTextInput()}
5858
{this.props.render({filteredSections})}
5959
</View>
@@ -98,6 +98,9 @@ const styles = StyleSheet.create({
9898
paddingVertical: 0,
9999
height: 35,
100100
},
101+
container: {
102+
flex: 1,
103+
},
101104
});
102105

103106
module.exports = RNTesterExampleFilter;

0 commit comments

Comments
 (0)