Skip to content

Commit

Permalink
Refactor, use platform-specific styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Aug 21, 2023
1 parent c3b8f16 commit d909681
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/components/InvertedFlatList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class InvertedFlatList extends React.Component {
ref={(el) => (this.list = el)}
shouldMeasureItems
contentContainerStyle={StyleSheet.compose(this.props.contentContainerStyle, styles.justifyContentEnd)}
style={styles.overscrollBehaviorContain}
/>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/home/report/ReportActionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ function ReportActionsList({
<InvertedFlatList
accessibilityLabel={translate('sidebarScreen.listOfChatMessages')}
ref={reportScrollManager.ref}
style={styles.overscrollBehaviorContain}
data={sortedReportActions}
renderItem={renderItem}
contentContainerStyle={styles.chatContentScrollView}
Expand Down
5 changes: 2 additions & 3 deletions src/styles/utilities/overflow.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import overflowAuto from './overflowAuto';
import overscrollBehaviorContain from './overscrollBehaviorContain';

/**
* Overflow utility styles with Bootstrap inspired naming.
Expand All @@ -22,9 +23,7 @@ export default {
overscrollBehavior: 'none',
},

overscrollBehaviorContain: {
overscrollBehavior: 'contain',
},
overscrollBehaviorContain,

overflowAuto,
};
3 changes: 3 additions & 0 deletions src/styles/utilities/overscrollBehaviorContain/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
overscrollBehavior: 'contain',
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {};

0 comments on commit d909681

Please sign in to comment.