react-native-infinite-flatlist-patch
Advanced tools
Comparing version 1.0.9 to 1.1.0
{ | ||
"name": "react-native-infinite-flatlist-patch", | ||
"version": "1.0.9", | ||
"version": "1.1.0", | ||
"description": "Patch for infinite scrolling with FlatList", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -18,2 +18,5 @@ #!/usr/bin/env node | ||
switch (minorVersion) { | ||
case 66: | ||
patchDir = '0.66.0'; | ||
break; | ||
case 65: | ||
@@ -20,0 +23,0 @@ patchDir = '0.65.0'; |
@@ -20,3 +20,3 @@ [![NPM Version][npm-image]][npm-url] | ||
`postinstall`, `postuninstall` should be added to prevent this patch from being restored whenever packages are changed. | ||
`prepare` should be added to prevent this patch from being restored whenever packages are changed. | ||
```javascript | ||
@@ -27,4 +27,3 @@ { | ||
..., | ||
"postinstall": "yarn run infinite-flatlist-patch", | ||
"postuninstall": "yarn run infinite-flatlist-patch" | ||
"prepare": "yarn run infinite-flatlist-patch" | ||
} | ||
@@ -34,5 +33,5 @@ } | ||
If you were already using `postinstall`, you can add the patch script later. | ||
If you were already using `prepare`, you can add the patch script later. | ||
```javascript | ||
"postinstall": "yarn run jetify; yarn run infinite-flatlist-patch" | ||
"prepare": "yarn run jetify; yarn run infinite-flatlist-patch" | ||
``` | ||
@@ -47,3 +46,3 @@ | ||
### Uninstall | ||
Just delete the command you added to `postinstall`, `postuninstall` and remove my package. | ||
Just delete the command you added to `prepare` and remove my package. | ||
@@ -50,0 +49,0 @@ # Check out the improvements |
Sorry, the diff of this file is too big to display
905362
17
25996
81