seigel / pouchdb-react-native

Pouchdb with async storage
MIT License
484 stars 68 forks source link

fix(): AsyncStorage from @react-native-async-storage/async-storage #154

Open msotnikov opened 2 years ago

msotnikov commented 2 years ago

1) fix AsyncStorage imported from @react-native-async-storage/async-storage 2) Update dependencies

msotnikov commented 2 years ago

Blob has removed. I think it's for browsers (it create <a> in document). I think a Buffer is enough. I can't test it with attachments.

Productivix commented 1 year ago

hi, when this PR will be integrated please , because nothing works for RN 0.70 with PouchDB !

error in bundle : BUNDLE ./index.js

WARN AsyncStorage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-async-storage/async-storage' instead of 'react-native'. See https://github.com/react-native-async-storage/async-storage LOG Running "test_couchdb_offline" with {"rootTag":1} LOG global.base64FromArrayBuffer: undefined WARN global.base64FromArrayBuffer is not defined at App (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.test_couchdb_offline&modulesOnly=false&runModule=true:97542:41) at RCTView at View at RCTView at View at AppContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.test_couchdb_offline&modulesOnly=false&runModule=true:88956:36) at test_couchdb_offline(RootComponent) (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.test_couchdb_offline&modulesOnly=false&runModule=true:93667:28)

thank you !

seigel commented 1 year ago

Investigating.

msotnikov commented 1 year ago

Could you check it pls?

msotnikov commented 1 year ago

@seigel Could you check it pls?