Skip to content

Pouch db crashes my React native App #8477

@gbengeA

Description

@gbengeA

Installation

My App crashes on adding pouchDB code after installation

Info

  • Environment: ( expo react-native web and android)
  • Platform: (Chrome, Android, iOS)
  • Target App to run on expo web, android and ios

Reproduce

dependecies

"pouchdb-react-native": "^6.4.1",
"expo": "~44.0.0",
"react-native": "0.64.3"

code

import PouchDB from 'pouchdb-react-native'
 db.get('4711')
        .then(doc => console.log(doc))

Crash logs

./node_modules/pouchdb-adapter-asyncstorage/src/databases.js:32
"export 'default' (imported as 'AsyncStorageCore') was not found in './asyncstorage_core'
30 | }
31 |

32 | const storage = new AsyncStorageCore(opts.name)
33 |
34 | storage.multiGet(toMetaKeys([
35 | '_local_uuid', '_local_doc_count', '_local_last_update_seq'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions