Skip to content

Commit

Permalink
Fix SectionList layout of RNTester on iOS (#23119)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zhongwuzw authored and facebook-github-bot committed Jan 23, 2019
1 parent 5ed31ce commit 25f7b0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Libraries/ART/ARTCGFloatArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

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

// This is fragile since this relies on these values not getting reused. Consider
// wrapping these in an Obj-C class or some ARC hackery to get refcounting.
Expand Down
2 changes: 1 addition & 1 deletion Libraries/ART/ARTTextFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

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

// This is fragile since this relies on these values not getting reused. Consider
// wrapping these in an Obj-C class or some ARC hackery to get refcounting.
Expand Down
5 changes: 4 additions & 1 deletion RNTester/js/RNTesterExampleFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class RNTesterExampleFilter extends React.Component<Props, State> {
}));

return (
<View>
<View style={styles.container}>
{this._renderTextInput()}
{this.props.render({filteredSections})}
</View>
Expand Down Expand Up @@ -98,6 +98,9 @@ const styles = StyleSheet.create({
paddingVertical: 0,
height: 35,
},
container: {
flex: 1,
},
});

module.exports = RNTesterExampleFilter;

0 comments on commit 25f7b0e

Please sign in to comment.