gameboyVito / react-native-ultimate-listview

A high performance FlatList providing customised pull-to-refresh | auto-pagination & infinite-scrolling | gridview layout | swipeable-row.
https://www.npmjs.com/package/react-native-ultimate-listview
MIT License
540 stars 87 forks source link

`@react-native-community/async-storage` moved to `@react-native-async-storage/async-storage` #72

Open helloimfrog opened 3 years ago

helloimfrog commented 3 years ago

Hi! 👋

@react-native-community/async-storage moved to @react-native-async-storage/async-storage, so I used patch-package to patch @bang88/react-native-ultimate-listview@3.3.4 for the project I'm working on.

Here is the diff that solved my problem, auto generated by patch-package:

diff --git a/node_modules/@bang88/react-native-ultimate-listview/src/refreshableScrollView.android.js b/node_modules/@bang88/react-native-ultimate-listview/src/refreshableScrollView.android.js
index 16fae01..2a25fc1 100644
--- a/node_modules/@bang88/react-native-ultimate-listview/src/refreshableScrollView.android.js
+++ b/node_modules/@bang88/react-native-ultimate-listview/src/refreshableScrollView.android.js
@@ -9,7 +9,7 @@ import {
   Text,
   View
 } from 'react-native'
-import AsyncStorage from '@react-native-community/async-storage'
+import AsyncStorage from '@react-native-async-storage/async-storage'
 import dateFormat from './util'

 const { width, height } = Dimensions.get('window')
diff --git a/node_modules/@bang88/react-native-ultimate-listview/src/refreshableScrollView.ios.js b/node_modules/@bang88/react-native-ultimate-listview/src/refreshableScrollView.ios.js
index 4b98e9e..c095641 100644
--- a/node_modules/@bang88/react-native-ultimate-listview/src/refreshableScrollView.ios.js
+++ b/node_modules/@bang88/react-native-ultimate-listview/src/refreshableScrollView.ios.js
@@ -1,6 +1,6 @@
 import React from 'react'
 import { ActivityIndicator, Animated, Easing, ScrollView, StyleSheet, Text, View } from 'react-native'
-import AsyncStorage from '@react-native-community/async-storage'
+import AsyncStorage from '@react-native-async-storage/async-storage'

 import dateFormat from './util'