Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: @ionic/storage with React #19824

Closed
not-a-designer opened this issue Nov 1, 2019 · 3 comments
Closed

feat: @ionic/storage with React #19824

not-a-designer opened this issue Nov 1, 2019 · 3 comments
Labels
package: react @ionic/react package

Comments

@not-a-designer
Copy link

Feature Request

Ionic version:

[x] 4.x

Describe the Feature Request

@ionic/storage has a dependency that comes from @angular/core, so it is incompatible to use in a React App
file: ./node_modules/@ionic/storage/index.d.ts

import { ModuleWithProviders } from '@angular/core';

Describe Preferred Solution

Platform-independent way to add key/value pairs to the local storage

Describe Alternatives

Related Code

Additional Context

@ionitron-bot ionitron-bot bot added the triage label Nov 1, 2019
@elylucas elylucas added the package: react @ionic/react package label Nov 4, 2019
@ionitron-bot ionitron-bot bot removed the triage label Nov 4, 2019
@ebk46
Copy link

ebk46 commented Nov 8, 2019

Have you tried the Capacitor plugin? https://capacitor.ionicframework.com/docs/apis/storage/
That, or just using localStorage should work.

@elylucas
Copy link
Contributor

Hi, yes, as @ebk46 suggested, give the Capacitor storage a try. We are focusing native and web api access for Ionic/React through Capacitor.

@ionitron-bot
Copy link

ionitron-bot bot commented Dec 25, 2019

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Dec 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: react @ionic/react package
Projects
None yet
Development

No branches or pull requests

3 participants