Skip to content

Commit b0638ec

Browse files
committed
v3.2.2 released - bug fixed and added a waning when using advancedRefreshView on Android
1 parent 275ea7c commit b0638ec

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

Example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"native-base": "^2.3.1",
1111
"react": "16.0.0-alpha.12",
1212
"react-native": "0.46.1",
13-
"react-native-ultimate-listview": "^3.2.0"
13+
"react-native-ultimate-listview": "^3.2.2"
1414
},
1515
"devDependencies": {
1616
"babel-jest": "20.0.3",

Example/yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -3153,9 +3153,9 @@ [email protected]:
31533153
prop-types "^15.5.10"
31543154
react-timer-mixin "^0.13.3"
31553155

3156-
react-native-ultimate-listview@^3.2.0:
3157-
version "3.2.0"
3158-
resolved "https://registry.yarnpkg.com/react-native-ultimate-listview/-/react-native-ultimate-listview-3.2.0.tgz#6c613af97da5fac03fc5350088431033f1eb3d38"
3156+
react-native-ultimate-listview@^3.2.2:
3157+
version "3.2.2"
3158+
resolved "https://registry.yarnpkg.com/react-native-ultimate-listview/-/react-native-ultimate-listview-3.2.2.tgz#682f13db53bcd4c6856b112d6a526a71e1b0fae6"
31593159

31603160
react-native-vector-icons@~4.1.1:
31613161
version "4.1.1"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This is an **enhanced FlatList** with all excellent extra features, comparing to
1313
**Quick installation**
1414

1515
- If on react-native < 0.43: `yarn add [email protected]`
16-
- If on react-native >= 0.43 `yarn add react-native-ultimate-listview@3.2.0`
16+
- If on react-native >= 0.43 `yarn add react-native-ultimate-listview@latest`
1717

1818

1919

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-ultimate-listview",
3-
"version": "3.2.1",
3+
"version": "3.2.2",
44
"description": "A high performance FlatList providing customised pull-to-refresh | auto-pagination & infinite-scrolling | gridview layout | swipeable-row. The truly ultimate version that I have done the most tricky part for you, just simply follow the instructions shown below to put it in your app.",
55
"main": "index.js",
66
"scripts": {

src/refreshableScrollView.android.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export default class RefreshableScrollView extends ScrollView {
4343
}
4444

4545
componentDidMount() {
46+
console.warn('The advancedRefreshView is not ready for Android at this moment. \n\nIf the items are less than the height of device screen, the refreshView will not disappear. \n\nPlease consider setting the refreshableMode={Platform.OS === "ios" ? "advanced" : "basic"}, or feel free to send me a PR to resolve this problem. \n\nThanks a lot.');
4647
AsyncStorage.getItem(DATE_KEY, (error, result) => {
4748
if (result) {
4849
result = parseInt(result);
@@ -160,7 +161,9 @@ export default class RefreshableScrollView extends ScrollView {
160161
showRefreshHeader: true,
161162
});
162163
setTimeout(() => {
163-
this.refs.scrollView.scrollTo({x: 0, y: this.props.refreshViewHeight, animated: true});
164+
if (this.refs.scrollView.scrollTo) {
165+
this.refs.scrollView.scrollTo({x: 0, y: this.props.refreshViewHeight, animated: true});
166+
}
164167
this.setState({
165168
refreshStatus: RefreshStatus.pullToRefresh,
166169
refreshTitle: this.props.refreshableTitlePull,

0 commit comments

Comments
 (0)