We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54ed60f commit c3a1170Copy full SHA for c3a1170
src/SortableList.js
@@ -174,15 +174,12 @@ export default class SortableList extends Component {
174
const {contentContainerStyle, horizontal, style} = this.props;
175
const {animated, contentHeight, contentWidth, scrollEnabled} = this.state;
176
const containerStyle = StyleSheet.flatten([style, {opacity: Number(animated)}])
177
- const innerContainerStyle = [styles.rowsContainer];
+ const innerContainerStyle = [
178
+ styles.rowsContainer,
179
+ horizontal ? {width: contentWidth} : {height: contentHeight},
180
+ ];
181
let {refreshControl} = this.props;
182
- if (horizontal) {
- innerContainerStyle.push({width: contentWidth});
- } else {
183
- innerContainerStyle.push({height: contentHeight});
184
- }
185
-
186
if (refreshControl && refreshControl.type === RefreshControl) {
187
refreshControl = React.cloneElement(this.props.refreshControl, {
188
enabled: scrollEnabled, // fix for Android
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments