Skip to content

Commit

Permalink
fix(hippy-react-web): scroll-view style should be called by formatWeb…
Browse files Browse the repository at this point in the history
…S… (#233)

* fix(hippy-react-web): formatWebStyle for ScrollView

Co-authored-by: zehuiguan <[email protected]>
  • Loading branch information
zehuiguan and zehuiguan authored Apr 22, 2020
1 parent ee65c8e commit 9db12a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hippy-react-web/src/components/scroll-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export class ScrollView extends React.Component {
WebkitOverflowScrolling: 'touch',
};
const newStyle = horizontal
? Object.assign({}, style, iOSTouchStyle, styles.baseHorizontal)
: Object.assign({}, style, iOSTouchStyle, styles.baseVertical);
? { ...formatWebStyle(style), ...iOSTouchStyle, ...styles.baseHorizontal }
: { ...formatWebStyle(style), ...iOSTouchStyle, ...styles.baseVertical };
newProps.style = formatWebStyle(newStyle);
if (typeof newProps.onScroll === 'function') {
const onScrollFunc = newProps.onScroll;
Expand Down

0 comments on commit 9db12a4

Please sign in to comment.