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

Experimental AsyncStorage support for react-native #983

Merged
merged 6 commits into from
Jul 1, 2024

Conversation

Apollon77
Copy link
Collaborator

@Apollon77 Apollon77 commented Jun 30, 2024

Use @react-native-async-storage/async-storage to implement an AsyncStorage based storage.

The whole react-native part is experimental and will be verified by building a react-native app in the next weeks. AFter this we can mark it as stable.

@foxriver76 - please feel free to also review or comment

Use @react-native-async-storage/async-storage to implement an AsyncStorage based storage.
Use in react native env

Also downgrades chai-as-promise because the esm only has effects on running tests locally
# Conflicts:
#	package-lock.json
#	packages/matter.js-react-native/package.json
@Apollon77
Copy link
Collaborator Author

Very strange is that - most likely because of a double default export - the types for AsyncStorage tell that it only exists under AsyncStorage.default. That way it is building but I have big doubts if it will be working tbh.
Anyone an idea?

@Apollon77
Copy link
Collaborator Author

Ok, adjusted now to "without .default" because I assume it is just type issue ... see also https://react-native-async-storage.github.io/async-storage/docs/usage ... so we ignore the errors

@mergify mergify bot merged commit df4ae8f into main Jul 1, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants