async_storage_reader
1.0.0, released 2 years ago by an unverified publisher
Read React Native AsyncStorage data in a Flutter app
What it does
The package exposes an API to read, remove, and clear key‑value pairs stored in React Native’s AsyncStorage on Android and iOS. It allows a Flutter app to access existing session tokens, preferences, and cached data during migration.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Migrating a React Native app to Flutter and need to preserve user data
- You want to pre‑populate a Flutter app with data stored in a RN app
- You need to debug or inspect AsyncStorage contents from Flutter
Skip it when
- You only need a generic key‑value store for your Flutter app
- You are not migrating from React Native
Strengths
- Simple API, no code generation
- Supports both Android and iOS
- Preserves user session data during migration
Weaknesses
- Limited to React Native AsyncStorage only
- No support for other storage backends
- Requires matching bundle/application IDs
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add dependency to pubspec.yaml, ensure both apps share the same bundle ID or application ID
import 'package:async_storage_reader/async_storage_reader.dart';
final reader = AsyncStorageReader();
String? token = await reader.getItem('session_token');
print(token);Alternatives
Packages that do the same job and could replace async_storage_reader.
- localstorage
LocalStorage for Flutter and Web, alternative to React Native's AsyncStorage.
63Compare - migrant
A simple Dart tool for applying database schema migrations to SQLite and PostgreSQL.
45Compare
Works with
Packages commonly used together with async_storage_reader: ones it builds on, ones built on it, and its own family.
- path_providerasync_storage_reader depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- package_info_plusasync_storage_reader depends on itFlutter plugin to query app package info like version, build number and installer store.
- sqfliteasync_storage_reader depends on itSQLite plugin for Flutter supporting iOS, Android and MacOS.