Skip to content

Documentation mismatch #469

Closed
Closed
@lvonk

Description

@lvonk

Current behavior

Follow the instructions as described here: https://react-native-async-storage.github.io/async-storage/docs/install

yarn add @react-native-async-storage/async-storage
npx pod-install

The use as described here https://react-native-async-storage.github.io/async-storage/docs/usage:

import AsyncStorage from '@react-native-async-storage/async-storage';

This results in an error:

[Error: undefined Unable to resolve module `@react-native-async-storage/async-storage` from `pages/Page.js`: @react-native-async-storage/async-storage could not be found within the project.

Changing it to: import AsyncStorage from '@react-native-community/async-storage'; resolves the issue

Expected behavior

That the instructions work :-)

Environment

  • Async Storage version: "@react-native-community/async-storage": "^1.12.1",
  • React-Native version: "react-native": "0.63.3",
  • Platform tested: IOS

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