Skip to content

Commit 4349cf2

Browse files
fix: fixing the call to setOnEndReached
#4
1 parent 9a18ab5 commit 4349cf2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
"@commitlint/config-conventional": "^11.0.0",
5151
"@react-native-community/eslint-config": "^2.0.0",
5252
"@release-it/conventional-changelog": "^2.0.0",
53+
"@stream-io/flat-list-mvcp": "^",
5354
"@types/jest": "^26.0.0",
5455
"@types/react": "^16.9.19",
5556
"@types/react-native": "0.62.13",
56-
"@stream-io/flat-list-mvcp": "^",
5757
"commitlint": "^11.0.0",
5858
"eslint": "^7.2.0",
5959
"eslint-config-prettier": "^7.0.0",
@@ -69,9 +69,9 @@
6969
"typescript": "^4.1.3"
7070
},
7171
"peerDependencies": {
72+
"@stream-io/flat-list-mvcp": "*",
7273
"react": "*",
73-
"react-native": "*",
74-
"@stream-io/flat-list-mvcp": "*"
74+
"react-native": "*"
7575
},
7676
"jest": {
7777
"preset": "react-native",

src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ const BidirectionalFlatList = React.forwardRef(
145145
const p = () => {
146146
return new Promise<void>((resolve) => {
147147
onStartReachedInPromise.current = null;
148-
setOnStartReachedInProgress(false);
148+
setOnEndReachedInProgress(false);
149149
resolve();
150150
});
151151
};

0 commit comments

Comments
 (0)