Skip to content

Commit 11c6922

Browse files
committed
Fix autoscroll on Android
1 parent ba61c84 commit 11c6922

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/SortableList.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {Component, PropTypes} from 'react';
2-
import {Animated, ScrollView, View, StyleSheet, Platform, RefreshControl} from 'react-native';
2+
import {ScrollView, View, StyleSheet, Platform, RefreshControl} from 'react-native';
33
import {shallowEqual, swapArrayElements} from './utils';
44
import Row from './Row';
55

@@ -164,7 +164,7 @@ export default class SortableList extends Component {
164164
}
165165

166166
return (
167-
<Animated.View style={containerStyle} ref={this._onRefContainer}>
167+
<View style={StyleSheet.flatten([containerStyle, {opacity: 1}])} ref={this._onRefContainer}>
168168
<ScrollView
169169
refreshControl={refreshControl}
170170
ref={this._onRefScrollView}
@@ -177,7 +177,7 @@ export default class SortableList extends Component {
177177
{this._renderRows()}
178178
</View>
179179
</ScrollView>
180-
</Animated.View>
180+
</View>
181181
);
182182
}
183183

@@ -536,8 +536,8 @@ export default class SortableList extends Component {
536536
this._contentOffset = contentOffset;
537537
};
538538

539-
_onRefContainer = (animatedComponent) => {
540-
this._container = animatedComponent && animatedComponent._component;
539+
_onRefContainer = (component) => {
540+
this._container = component;
541541
};
542542

543543
_onRefScrollView = (component) => {

0 commit comments

Comments
 (0)