async_storage_reader
React Native ऐप्स से AsyncStorage डेटा को पढ़ने के लिए Flutter पैकेज, Flutter में माइग्रेशन के दौरान डेटा खोने से बचाता है।
BilalRehman08/Async-Storage-Reader open-source repository details.
{"sdk":"flutter"}^8.0.2^2.1.4^2.3.3+2{"sdk":"flutter"}^4.0.0^5.4.4^2.4.13यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A Flutter package created to assist in migrating data from a React Native app by accessing and reading AsyncStorage for Android and iOS. It allows reading of AsyncStorage data from react native app, like user session tokens, preferences, other configurations, and cached data are preserved without logging out or data loss during migration to a new Flutter app.
Note: Please ensure that both the React Native and Flutter apps have the same bundle ID (for iOS) and application ID (for Android).
When migrating from React Native to Flutter, one of the most significant challenges is ensuring that existing data stored in the app is preserved. This could include user session tokens, settings, cached preferences, or any other key-value pairs that were previously stored using React Native's AsyncStorage. Without this, users might lose their preferences or be logged out. This package solves the problem by offering an easy way to access all AsyncStorage in your new Flutter app.
Demo Preview
The async_storage_reader package provides support for both Android and iOS platforms.
To use this package, add async_storage_reader as a dependency in your pubspec.yaml file:
dependencies:
async_storage_reader: ^1.0.0
import 'package:async_storage_reader/async_storage_reader.dart';
final reader = AsyncStorageReader();
String? value = await reader.getItem('your_key');
print(value);
Map<String, String> allItems = await reader.getAllItems();
print(allItems);
bool success = await reader.removeItem('your_key');
print(success);
bool success = await reader.clear();
print(success);
This project is licensed under the MIT License - see the LICENSE file for details.
GitHub: bilalrehman08 Linkedin: bilalrehman08 [YouTube: Bilal Rehman][youtube] Instagram: bilalrehman08 [Gmail: bilalrehman080808@gmail.com][gmail]
[gmail]: mailto:bilalrehman080808@gmail.com [youtube]: https://www.youtube.com/@bilalrehman08 [license]: https://github.com/BilalRehman08/Async-Storage-Reader/blob/main/LICENSE